Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Process Class Reference

#include </home/clem/local/src/opie/library/process.h>

Collaboration diagram for Process:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Process (QObject *parent=0, const char *name=0)
 Process (const QString &arg0, QObject *parent=0, const char *name=0)
 Process (const QStringList &args, QObject *parent=0, const char *name=0)
 ~Process ()
QStringList arguments () const
virtual void setArguments (const QStringList &args)
virtual void addArgument (const QString &arg)
virtual bool exec (const QString &in, QString &out, QStringList *env=0)
virtual bool exec (const QByteArray &in, QByteArray &out, QStringList *env=0)

Private Member Functions

void init ()

Private Attributes

ProcessPrivated
QStringList _arguments
int exitStat
bool exitNormal
bool ioRedirection
bool notifyOnExit
bool wroteToStdinConnected

Friends

class ProcessPrivate
class ProcessManager
class Proc

Constructor & Destructor Documentation

Process::Process QObject *  parent = 0,
const char *  name = 0
 

Definition at line 31 of file process.cpp.

References init().

Process::Process const QString arg0,
QObject *  parent = 0,
const char *  name = 0
 

Definition at line 38 of file process.cpp.

References addArgument(), and init().

Process::Process const QStringList args,
QObject *  parent = 0,
const char *  name = 0
 

Definition at line 46 of file process.cpp.

References init(), and setArguments().

Process::~Process  ) 
 

Destroys the class.

If the process is running, it is NOT terminated! Standard input, standard output and standard error of the process are closed.

See also:
hangUp() kill()

Definition at line 302 of file process_unix.cpp.

References d.


Member Function Documentation

void Process::addArgument const QString arg  )  [virtual]
 

Definition at line 65 of file process.cpp.

References _arguments, and QValueList< T >::append().

Referenced by Process(), and ServerPI::process().

QStringList Process::arguments  )  const
 

Definition at line 55 of file process.cpp.

References _arguments.

bool Process::exec const QByteArray in,
QByteArray out,
QStringList env = 0
[virtual]
 

Definition at line 307 of file process_unix.cpp.

References _arguments, QValueList< T >::begin(), buf, bufsize, ProcessPrivate::closeOpenSocketsForChild(), QString::contains(), QValueList< T >::count(), d, QValueList< T >::end(), error(), FALSE, QFileInfo::filePath(), QStringList::grep(), i, QFileInfo::isExecutable(), pid, qDebug(), QStringList::split(), TRUE, and write().

bool Process::exec const QString in,
QString out,
QStringList env = 0
[virtual]
 

Definition at line 70 of file process.cpp.

References QString::fromLocal8Bit().

Referenced by OipkgPackage::details(), ServerPI::process(), and Qsmb::runCommand().

void Process::init  )  [private]
 

This private class does basic initialization.

Definition at line 287 of file process_unix.cpp.

References d, exitNormal, exitStat, FALSE, and ProcessPrivate.

Referenced by Process().

void Process::setArguments const QStringList args  )  [virtual]
 

Definition at line 60 of file process.cpp.

References _arguments.

Referenced by Process().


Friends And Related Function Documentation

friend class Proc [friend]
 

Definition at line 89 of file process.h.

friend class ProcessManager [friend]
 

Definition at line 88 of file process.h.

friend class ProcessPrivate [friend]
 

Definition at line 87 of file process.h.

Referenced by init().


Member Data Documentation

QStringList Process::_arguments [private]
 

Definition at line 79 of file process.h.

Referenced by addArgument(), arguments(), exec(), and setArguments().

ProcessPrivate* Process::d [private]
 

Definition at line 78 of file process.h.

Referenced by exec(), init(), Proc::~Proc(), and ~Process().

bool Process::exitNormal [private]
 

Definition at line 82 of file process.h.

Referenced by init().

int Process::exitStat [private]
 

Definition at line 81 of file process.h.

Referenced by init().

bool Process::ioRedirection [private]
 

Definition at line 83 of file process.h.

bool Process::notifyOnExit [private]
 

Definition at line 84 of file process.h.

bool Process::wroteToStdinConnected [private]
 

Definition at line 85 of file process.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:45:32 2005 for OPIE by  doxygen 1.4.2