• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDEsu

StubProcess Class Reference

Chat with kdesu_stub. More...

#include <stub.h>

Inheritance diagram for StubProcess:

Inheritance graph
[legend]

List of all members.


Public Types

enum  Scheduler { SchedNormal, SchedRealtime }

Public Member Functions

void setCommand (const QCString &command)
void setDCOPForwarding (bool dcopForwarding)
void setDcopTransport (const QCString &dcopTransport)
void setPriority (int prio)
void setScheduler (int sched)
void setUser (const QCString &user)
void setXOnly (bool xonly)
 StubProcess ()
 ~StubProcess ()

Protected Member Functions

int ConverseStub (int check)
virtual QCString dcopAuth ()
virtual QCString dcopServer ()
virtual QCString display ()
virtual QCString iceAuth ()
void notifyTaskbar (const QString &suffix)
virtual void virtual_hook (int id, void *data)

Protected Attributes

bool m_bDCOPForwarding
bool m_bXOnly
QCString m_Command
QCString m_dcopTransport
KCookie * m_pCookie
int m_Priority
int m_Scheduler
QCString m_User

Detailed Description

Chat with kdesu_stub.

StubProcess extends PtyProcess with functionality to chat with kdesu_stub.

Definition at line 32 of file stub.h.


Member Enumeration Documentation

enum StubProcess::Scheduler

Different schedulers.

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

Enumerator:
SchedNormal 
SchedRealtime 

Definition at line 75 of file stub.h.


Constructor & Destructor Documentation

StubProcess::StubProcess (  ) 

Definition at line 31 of file stub.cpp.

StubProcess::~StubProcess (  ) 

Definition at line 42 of file stub.cpp.


Member Function Documentation

int StubProcess::ConverseStub ( int  check  )  [protected]

Exchange all parameters with kdesu_stub.

Definition at line 80 of file stub.cpp.

virtual QCString StubProcess::dcopAuth (  )  [inline, protected, virtual]

See display.

Definition at line 114 of file stub.h.

virtual QCString StubProcess::dcopServer (  )  [inline, protected, virtual]

See display.

Reimplemented in SshProcess.

Definition at line 110 of file stub.h.

virtual QCString StubProcess::display (  )  [inline, protected, virtual]

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.

virtual QCString StubProcess::iceAuth (  )  [inline, protected, virtual]

See display.

Definition at line 118 of file stub.h.

void StubProcess::notifyTaskbar ( const QString &  suffix  )  [protected]

Notify the taskbar that a new application has been started.

Deprecated:

Definition at line 178 of file stub.cpp.

void StubProcess::setCommand ( const QCString &  command  )  [inline]

Set the command.

Definition at line 47 of file stub.h.

void StubProcess::setDCOPForwarding ( bool  dcopForwarding  )  [inline]

Enable DCOP forwarding.

Definition at line 62 of file stub.h.

void StubProcess::setDcopTransport ( const QCString &  dcopTransport  )  [inline]

Specify dcop transport.

Definition at line 41 of file stub.h.

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.

void StubProcess::setScheduler ( int  sched  )  [inline]

Set the scheduler type.

Definition at line 80 of file stub.h.

void StubProcess::setUser ( const QCString &  user  )  [inline]

Set the target user.

Definition at line 52 of file stub.h.

void StubProcess::setXOnly ( bool  xonly  )  [inline]

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

Definition at line 57 of file stub.h.

void StubProcess::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from PtyProcess.

Reimplemented in SshProcess, and SuProcess.

Definition at line 183 of file stub.cpp.


Member Data Documentation

bool StubProcess::m_bDCOPForwarding [protected]

Definition at line 121 of file stub.h.

bool StubProcess::m_bXOnly [protected]

Definition at line 120 of file stub.h.

QCString StubProcess::m_Command [protected]

Reimplemented from PtyProcess.

Definition at line 125 of file stub.h.

QCString StubProcess::m_dcopTransport [protected]

Definition at line 124 of file stub.h.

KCookie* StubProcess::m_pCookie [protected]

Definition at line 127 of file stub.h.

int StubProcess::m_Priority [protected]

Definition at line 122 of file stub.h.

int StubProcess::m_Scheduler [protected]

Definition at line 123 of file stub.h.

QCString 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

KDEsu

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal