• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdesu
 

tdesu

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StubProcess Class Reference

#include <stub.h>

Inheritance diagram for StubProcess:
PtyProcess SshProcess SuProcess

Public Types

enum  Scheduler { SchedNormal , SchedRealtime }
 
- Public Types inherited from PtyProcess
enum  checkPidStatus { Error =-1 , NotExited =-2 , Killed =-3 }
 

Public Member Functions

void setDcopTransport (const TQCString &dcopTransport)
 
void setCommand (const TQCString &command)
 
void setUser (const TQCString &user)
 
void setXOnly (bool xonly)
 
void setDCOPForwarding (bool dcopForwarding)
 
void setPriority (int prio)
 
void setScheduler (int sched)
 
- Public Member Functions inherited from PtyProcess
int exec (const TQCString &command, const QCStringList &args)
 
TQCString readLine (bool block=true)
 
TQCString readAll (bool block=true)
 
void writeLine (const TQCString &line, bool addNewline=true)
 
void unreadLine (const TQCString &line, bool addNewline=true)
 
void setExitString (const TQCString &exit)
 
int waitForChild ()
 
int WaitSlave ()
 
int enableLocalEcho (bool enable=true)
 
void setTerminal (bool terminal)
 
void setErase (bool erase)
 
void setEnvironment (const QCStringList &env)
 
int fd ()
 
int pid ()
 

Protected Member Functions

int ConverseStub (int check)
 
void notifyTaskbar (const TQString &suffix)
 
virtual TQCString display ()
 
virtual TQCString dcopServer ()
 
virtual TQCString dcopAuth ()
 
virtual TQCString iceAuth ()
 
virtual void virtual_hook (int id, void *data)
 
- Protected Member Functions inherited from PtyProcess
const QCStringList & environment () const
 
virtual void virtual_hook (int id, void *data)
 

Protected Attributes

bool m_bXOnly
 
bool m_bDCOPForwarding
 
int m_Priority
 
int m_Scheduler
 
TQCString m_dcopTransport
 
TQCString m_Command
 
TQCString m_User
 
KCookie * m_pCookie
 
- Protected Attributes inherited from PtyProcess
bool m_bErase
 
bool m_bTerminal
 
int m_Pid
 
int m_Fd
 
TQCString m_Command
 
TQCString m_Exit
 

Additional Inherited Members

- Static Public Member Functions inherited from PtyProcess
static int waitMS (int fd, int ms)
 
static bool checkPid (pid_t pid)
 
static int checkPidExited (pid_t pid)
 

Detailed Description

Chat with tdesu_stub.

StubProcess extends PtyProcess with functionality to chat with tdesu_stub.

Definition at line 32 of file stub.h.

Member Enumeration Documentation

◆ Scheduler

enum StubProcess::Scheduler

Different schedulers.

SchedNormal is the normal Unix timesharing scheduler, while SchedRealtime is a POSIX.1b realtime scheduler.

Definition at line 75 of file stub.h.

Constructor & Destructor Documentation

◆ StubProcess()

StubProcess::StubProcess ( )

Definition at line 31 of file stub.cpp.

◆ ~StubProcess()

StubProcess::~StubProcess ( )

Definition at line 42 of file stub.cpp.

Member Function Documentation

◆ ConverseStub()

int StubProcess::ConverseStub ( int  check)
protected

Exchange all parameters with tdesu_stub.

Definition at line 80 of file stub.cpp.

◆ dcopAuth()

virtual TQCString StubProcess::dcopAuth ( )
inlineprotectedvirtual

See display.

Definition at line 114 of file stub.h.

◆ dcopServer()

virtual TQCString StubProcess::dcopServer ( )
inlineprotectedvirtual

See display.

Reimplemented in SshProcess.

Definition at line 110 of file stub.h.

◆ display()

virtual TQCString StubProcess::display ( )
inlineprotectedvirtual

This virtual function can be overloaded when special behavior is desired.

By default, it returns the value returned by KCookie.

Reimplemented in SshProcess.

Definition at line 100 of file stub.h.

◆ iceAuth()

virtual TQCString StubProcess::iceAuth ( )
inlineprotectedvirtual

See display.

Definition at line 118 of file stub.h.

◆ notifyTaskbar()

void StubProcess::notifyTaskbar ( const TQString &  suffix)
protected

Notify the taskbar that a new application has been started.

Deprecated:

Definition at line 183 of file stub.cpp.

◆ setCommand()

void StubProcess::setCommand ( const TQCString &  command)
inline

Set the command.

Definition at line 47 of file stub.h.

◆ setDCOPForwarding()

void StubProcess::setDCOPForwarding ( bool  dcopForwarding)
inline

Enable DCOP forwarding.

Definition at line 62 of file stub.h.

◆ setDcopTransport()

void StubProcess::setDcopTransport ( const TQCString &  dcopTransport)
inline

Specify dcop transport.

Definition at line 41 of file stub.h.

◆ setPriority()

void StubProcess::setPriority ( int  prio)

Set the priority of the process.

The priority value must be between 0 and 100, 0 being the lowest priority. This value is mapped to the scheduler and system dependant priority range of the OS.

Definition at line 48 of file stub.cpp.

◆ setScheduler()

void StubProcess::setScheduler ( int  sched)
inline

Set the scheduler type.

Definition at line 80 of file stub.h.

◆ setUser()

void StubProcess::setUser ( const TQCString &  user)
inline

Set the target user.

Definition at line 52 of file stub.h.

◆ setXOnly()

void StubProcess::setXOnly ( bool  xonly)
inline

Set to "X only mode": Sycoca is not built and tdeinit is not launched.

Definition at line 57 of file stub.h.

◆ virtual_hook()

void StubProcess::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Reimplemented from PtyProcess.

Definition at line 188 of file stub.cpp.

Member Data Documentation

◆ m_bDCOPForwarding

bool StubProcess::m_bDCOPForwarding
protected

Definition at line 121 of file stub.h.

◆ m_bXOnly

bool StubProcess::m_bXOnly
protected

Definition at line 120 of file stub.h.

◆ m_Command

TQCString StubProcess::m_Command
protected

Definition at line 125 of file stub.h.

◆ m_dcopTransport

TQCString StubProcess::m_dcopTransport
protected

Definition at line 124 of file stub.h.

◆ m_pCookie

KCookie* StubProcess::m_pCookie
protected

Definition at line 127 of file stub.h.

◆ m_Priority

int StubProcess::m_Priority
protected

Definition at line 122 of file stub.h.

◆ m_Scheduler

int StubProcess::m_Scheduler
protected

Definition at line 123 of file stub.h.

◆ m_User

TQCString StubProcess::m_User
protected

Definition at line 126 of file stub.h.


The documentation for this class was generated from the following files:
  • stub.h
  • stub.cpp

tdesu

Skip menu "tdesu"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdesu

Skip menu "tdesu"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdesu by doxygen 1.9.4
This website is maintained by Timothy Pearson.