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

KDEsu

KDESu::StubProcess

KDESu::StubProcess Class Reference

Chat with kdesu_stub. More...

#include <kdesu/stub.h>

Inheritance diagram for KDESu::StubProcess:

Inheritance graph
[legend]

List of all members.


Public Types

enum  Scheduler { SchedNormal, SchedRealtime }

Public Member Functions

void setCommand (const QByteArray &command)
void setPriority (int prio)
void setScheduler (int sched)
void setUser (const QByteArray &user)
void setXOnly (bool xonly)
 StubProcess ()
 ~StubProcess ()

Protected Member Functions

int ConverseStub (int check)
virtual QByteArray display ()
virtual QByteArray displayAuth ()
virtual void virtual_hook (int id, void *data)

Protected Attributes

bool m_bXOnly
QByteArray m_Command
KDESuPrivate::KCookie * m_pCookie
int m_Priority
int m_Scheduler
QByteArray 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 KDESu::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 64 of file stub.h.


Constructor & Destructor Documentation

KDESu::StubProcess::StubProcess (  ) 

Definition at line 29 of file stub.cpp.

KDESu::StubProcess::~StubProcess (  ) 

Definition at line 40 of file stub.cpp.


Member Function Documentation

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

Exchange all parameters with kdesu_stub.

Definition at line 105 of file stub.cpp.

QByteArray KDESu::StubProcess::display (  )  [protected, virtual]

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

By default, it returns the value returned by KCookie.

Reimplemented in KDESu::SshProcess.

Definition at line 189 of file stub.cpp.

QByteArray KDESu::StubProcess::displayAuth (  )  [protected, virtual]

See display.

Reimplemented in KDESu::SshProcess.

Definition at line 196 of file stub.cpp.

void KDESu::StubProcess::setCommand ( const QByteArray &  command  ) 

Set the command.

Definition at line 46 of file stub.cpp.

void KDESu::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 64 of file stub.cpp.

void KDESu::StubProcess::setScheduler ( int  sched  ) 

Set the scheduler type.

Definition at line 75 of file stub.cpp.

void KDESu::StubProcess::setUser ( const QByteArray &  user  ) 

Set the target user.

Definition at line 52 of file stub.cpp.

void KDESu::StubProcess::setXOnly ( bool  xonly  ) 

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

Definition at line 58 of file stub.cpp.

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

Standard hack to add virtual methods in a BC way.

Unused.

Reimplemented from KDESu::PtyProcess.

Reimplemented in KDESu::SshProcess, and KDESu::SuProcess.

Definition at line 203 of file stub.cpp.


Member Data Documentation

bool KDESu::StubProcess::m_bXOnly [protected]

Definition at line 89 of file stub.h.

QByteArray KDESu::StubProcess::m_Command [protected]

Unused.

Reimplemented from KDESu::PtyProcess.

Definition at line 92 of file stub.h.

KDESuPrivate::KCookie* KDESu::StubProcess::m_pCookie [protected]

Definition at line 94 of file stub.h.

int KDESu::StubProcess::m_Priority [protected]

Definition at line 90 of file stub.h.

int KDESu::StubProcess::m_Scheduler [protected]

Definition at line 91 of file stub.h.

QByteArray KDESu::StubProcess::m_User [protected]

Definition at line 93 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
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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