• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KDEsu

  • KDESu
  • StubProcess
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
KDESu::StubProcess Class Reference

#include <kdesu/stub.h>

Inheritance diagram for KDESu::StubProcess:
KDESu::PtyProcess KDESu::SshProcess KDESu::SuProcess

List of all members.

Public Types

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

Public Member Functions

 StubProcess ()
 ~StubProcess ()
void setCommand (const QByteArray &command)
void setPriority (int prio)
void setScheduler (int sched)
void setUser (const QByteArray &user)
void setXOnly (bool xonly)
- Public Member Functions inherited from KDESu::PtyProcess
 PtyProcess ()
virtual ~PtyProcess ()
int enableLocalEcho (bool enable=true)
int exec (const QByteArray &command, const QList< QByteArray > &args)
int fd () const
int pid () const
QByteArray readAll (bool block=true)
QByteArray readLine (bool block=true)
void setEnvironment (const QList< QByteArray > &env)
void setErase (bool erase)
void setExitString (const QByteArray &exit)
void setTerminal (bool terminal)
void unreadLine (const QByteArray &line, bool addNewline=true)
int waitForChild ()
int WaitSlave ()
void writeLine (const QByteArray &line, bool addNewline=true)

Protected Member Functions

int ConverseStub (int check)
virtual QByteArray display ()
virtual QByteArray displayAuth ()
virtual void virtual_hook (int id, void *data)
- Protected Member Functions inherited from KDESu::PtyProcess
QList< QByteArray > environment () const

Protected Attributes

bool m_bXOnly
QByteArray m_Command
KDESuPrivate::KCookie * m_pCookie
int m_Priority
int m_Scheduler
QByteArray m_User
- Protected Attributes inherited from KDESu::PtyProcess
bool m_bErase
bool m_bTerminal
QByteArray m_Exit
int m_Pid

Additional Inherited Members

- Static Public Member Functions inherited from KDESu::PtyProcess
static bool checkPid (pid_t pid)
static int checkPidExited (pid_t pid)
- Public Attributes inherited from KDESu::PtyProcess
public __pad0__: static int waitMS(int fd
public int ms

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 30 of file stub.cpp.

KDESu::StubProcess::~StubProcess ( )

Definition at line 41 of file stub.cpp.


Member Function Documentation

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

Exchange all parameters with kdesu_stub.

Definition at line 125 of file stub.cpp.

QByteArray KDESu::StubProcess::display ( )
protectedvirtual

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 219 of file stub.cpp.

QByteArray KDESu::StubProcess::displayAuth ( )
protectedvirtual

See display.

Reimplemented in KDESu::SshProcess.

Definition at line 226 of file stub.cpp.

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

Set the command.

Definition at line 47 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 dependent priority range of the OS.

Definition at line 65 of file stub.cpp.

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

Set the scheduler type.

Definition at line 76 of file stub.cpp.

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

Set the target user.

Definition at line 53 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 59 of file stub.cpp.

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

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 233 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:35:52 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEsu

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal