#include </home/clem/local/src/opie/noncore/applets/keyhelper/keyhelperapplet/anylnk/ProcessInvoker.h>
Collaboration diagram for ProcessInvoker:

Signals | |
| void | start (int, QStringList) |
| void | finish (QString, int) |
Public Member Functions | |
| bool | run () |
| bool | run (const QString &args) |
| void | terminate () |
| void | terminate (pid_t pid) |
| void | kill () |
| void | kill (pid_t pid) |
| void | setCommand (const QString &command) |
| void | setArguments (const QStringList &arglist) |
| void | setArguments (const QString &arguments) |
| void | addArgument (const QString &argument) |
| void | addArguments (const QString &arguments) |
| void | addArguments (const QStringList &arglist) |
| void | setRunning (int pid) |
| void | setNotify (bool enable=true) |
| bool | isRunning () |
| void | notifyFinish (int status, bool success=true) |
Static Public Member Functions | |
| static ProcessInvoker & | getInstance () |
Public Attributes | |
| pid_t | m_child |
Private Slots | |
| void | readOutputs () |
Private Member Functions | |
| ProcessInvoker () | |
| ProcessInvoker (const ProcessInvoker &) | |
| ProcessInvoker & | operator= (const ProcessInvoker &) |
| ~ProcessInvoker () | |
| bool | openPipe () |
| void | closePipe (int fd[]=NULL, int n=2) |
| void | notifyStatus (const QString &result, int code) |
| void | workerProc () |
Private Attributes | |
| QTimer * | m_pTimer |
| QStringList | m_arguments |
| bool | m_isRunning |
| bool | m_isNotify |
| Sigfunc * | m_defChildHandler |
| int | m_stdfd [2] |
| int | m_errfd [2] |
| int | m_maxfdp1 |
Friends | |
| class | Dummy |
Classes | |
| class | Dummy |
|
|
Definition at line 42 of file ProcessInvoker.cpp. References m_child, m_defChildHandler, m_errfd, m_isRunning, m_pTimer, m_stdfd, and readOutputs(). |
|
|
|
|
|
Definition at line 55 of file ProcessInvoker.cpp. References qDebug(). |
|
|
Definition at line 53 of file ProcessInvoker.h. References QValueList< T >::append(), and m_arguments. Referenced by addArguments(), and setCommand(). |
|
|
Definition at line 62 of file ProcessInvoker.h. References addArgument(), QValueList< T >::begin(), and QValueList< T >::end(). |
|
|
Definition at line 56 of file ProcessInvoker.h. References StringParser::split(). |
|
||||||||||||
|
Definition at line 81 of file ProcessInvoker.cpp. References m_errfd, m_stdfd, and NULL. Referenced by openPipe(), readOutputs(), run(), and workerProc(). |
|
||||||||||||
|
Referenced by notifyFinish(). |
|
|
Definition at line 30 of file ProcessInvoker.h. Referenced by ExecLnk::execute(). |
|
|
Definition at line 74 of file ProcessInvoker.h. References m_isRunning. |
|
|
Definition at line 202 of file ProcessInvoker.cpp. References kill(). |
|
|
Definition at line 195 of file ProcessInvoker.cpp. References m_child, and m_isRunning. Referenced by kill(), and terminate(). |
|
||||||||||||
|
Definition at line 347 of file ProcessInvoker.cpp. References code, finish(), m_child, m_defChildHandler, m_isNotify, m_isRunning, notifyStatus(), qWarning(), SC_CHANNEL, setNotify(), setSignalHandler(), and stopped. Referenced by childHandler(), and run(). |
|
||||||||||||
|
Definition at line 391 of file ProcessInvoker.cpp. References QString::append(), message, QString::number(), and Global::statusMessage(). Referenced by notifyFinish(), and run(). |
|
|
Definition at line 60 of file ProcessInvoker.cpp. References closePipe(), m_errfd, m_maxfdp1, and m_stdfd. Referenced by run(). |
|
|
|
|
|
Definition at line 265 of file ProcessInvoker.cpp. References buf, closePipe(), IO_WriteOnly, m_child, m_errfd, m_maxfdp1, m_pTimer, m_stdfd, NULL, qDebug(), SC_CHANNEL, and QDataStream::writeRawBytes(). Referenced by ProcessInvoker(), and run(). |
|
|
Definition at line 104 of file ProcessInvoker.cpp. References run(), setArguments(), and StringParser::split(). |
|
|
Definition at line 111 of file ProcessInvoker.cpp. References QValueList< T >::begin(), childHandler(), closePipe(), QValueList< T >::end(), QValueList< T >::isEmpty(), m_arguments, m_child, m_defChildHandler, m_isNotify, m_isRunning, m_pTimer, notifyFinish(), notifyStatus(), NULL, openPipe(), qDebug(), readOutputs(), SC_CHANNEL, setSignalHandler(), start(), and workerProc(). Referenced by ExecLnk::execute(), and run(). |
|
|
Definition at line 49 of file ProcessInvoker.h. References setArguments(), and StringParser::split(). |
|
|
Definition at line 46 of file ProcessInvoker.h. References m_arguments. Referenced by ExecLnk::execute(), run(), and setArguments(). |
|
|
Definition at line 42 of file ProcessInvoker.h. References addArgument(), QValueList< T >::clear(), and m_arguments. |
|
|
Definition at line 70 of file ProcessInvoker.h. References m_isNotify. Referenced by ExecLnk::execute(), and notifyFinish(). |
|
|
Definition at line 98 of file ProcessInvoker.cpp. References m_child, and m_isRunning. |
|
||||||||||||
|
Referenced by run(). |
|
|
Definition at line 190 of file ProcessInvoker.cpp. References kill(). |
|
|
Definition at line 183 of file ProcessInvoker.cpp. References m_child, and m_isRunning. |
|
|
Definition at line 402 of file ProcessInvoker.cpp. References closePipe(), QValueList< T >::count(), m_arguments, m_errfd, and m_stdfd. Referenced by run(). |
|
|
Definition at line 81 of file ProcessInvoker.h. |
|
|
Definition at line 94 of file ProcessInvoker.h. Referenced by addArgument(), run(), setArguments(), setCommand(), and workerProc(). |
|
|
Definition at line 79 of file ProcessInvoker.h. Referenced by childHandler(), kill(), notifyFinish(), ProcessInvoker(), readOutputs(), run(), setRunning(), and terminate(). |
|
|
Definition at line 99 of file ProcessInvoker.h. Referenced by notifyFinish(), ProcessInvoker(), and run(). |
|
|
Definition at line 102 of file ProcessInvoker.h. Referenced by closePipe(), openPipe(), ProcessInvoker(), readOutputs(), and workerProc(). |
|
|
Definition at line 97 of file ProcessInvoker.h. Referenced by notifyFinish(), run(), and setNotify(). |
|
|
Definition at line 96 of file ProcessInvoker.h. Referenced by isRunning(), kill(), notifyFinish(), ProcessInvoker(), run(), setRunning(), and terminate(). |
|
|
Definition at line 103 of file ProcessInvoker.h. Referenced by openPipe(), and readOutputs(). |
|
|
Definition at line 93 of file ProcessInvoker.h. Referenced by ProcessInvoker(), readOutputs(), and run(). |
|
|
Definition at line 101 of file ProcessInvoker.h. Referenced by closePipe(), openPipe(), ProcessInvoker(), readOutputs(), and workerProc(). |
1.4.2