#include <KviKvsProcessManager.h>
Enumerator |
---|
EventStarted |
|
EventTerminated |
|
EventStdout |
|
EventStderr |
|
EventPing |
|
KviKvsProcessAsyncOperation::~KviKvsProcessAsyncOperation |
( |
| ) |
|
void KviKvsProcessAsyncOperation::maxRunTimeExpired |
( |
| ) |
|
|
privateslot |
void KviKvsProcessAsyncOperation::ping |
( |
| ) |
|
|
privateslot |
void KviKvsProcessAsyncOperation::processExited |
( |
int |
exitCode | ) |
|
|
privateslot |
References EventStdout, EventTerminated, _KviKvsProcessDescriptorData::iFlags, KVI_KVS_PROCESSDESCRIPTOR_OUTPUTBYBLOCKS, KVI_KVS_PROCESSDESCRIPTOR_TRIGGERSTDERR, KVI_KVS_PROCESSDESCRIPTOR_TRIGGERSTDOUT, KVI_KVS_PROCESSDESCRIPTOR_TRIGGERTERMINATED, m_bDeletePending, m_pData, m_szStderrBuffer, m_szStdoutBuffer, readStderr(), readStdout(), trigger(), and triggerSelfDelete().
Referenced by start().
void KviKvsProcessAsyncOperation::processStarted |
( |
| ) |
|
|
privateslot |
void KviKvsProcessAsyncOperation::readStderr |
( |
| ) |
|
|
privateslot |
References a, EventStderr, _KviKvsProcessDescriptorData::iFlags, KVI_KVS_PROCESSDESCRIPTOR_OUTPUTBYBLOCKS, KVI_KVS_PROCESSDESCRIPTOR_TRIGGERSTDERR, l, m_bDeletePending, m_pData, m_pProcess, m_szStderrBuffer, trigger(), and triggerSelfDelete().
Referenced by processExited(), and start().
void KviKvsProcessAsyncOperation::readStdout |
( |
| ) |
|
|
privateslot |
References a, EventStdout, _KviKvsProcessDescriptorData::iFlags, KVI_KVS_PROCESSDESCRIPTOR_OUTPUTBYBLOCKS, KVI_KVS_PROCESSDESCRIPTOR_TRIGGERSTDOUT, l, m_bDeletePending, m_pData, m_pProcess, m_szStdoutBuffer, trigger(), and triggerSelfDelete().
Referenced by processExited(), and start().
void KviKvsProcessAsyncOperation::selfDelete |
( |
| ) |
|
|
privateslot |
bool KviKvsProcessAsyncOperation::start |
( |
| ) |
|
References connect(), _KviKvsProcessDescriptorData::iFlags, _KviKvsProcessDescriptorData::iMaxRunTime, _KviKvsProcessDescriptorData::iPingTimeout, KVI_KVS_PROCESSDESCRIPTOR_NOSHELL, KVI_KVS_PROCESSDESCRIPTOR_TRIGGERSTARTED, KVI_KVS_PROCESSDESCRIPTOR_TRIGGERSTDERR, KVI_KVS_PROCESSDESCRIPTOR_TRIGGERSTDOUT, m_pData, m_pPingTimer, m_pProcess, m_pRunTimeTimer, maxRunTimeExpired(), ping(), processExited(), processStarted(), readStderr(), readStdout(), _KviKvsProcessDescriptorData::szCommandline, and _KviKvsProcessDescriptorData::szShell.
Referenced by KviKvsCoreCallbackCommands::KVSCCC().
bool KviKvsProcessAsyncOperation::trigger |
( |
CallbackEvent |
e, |
|
|
const QString & |
szData |
|
) |
| |
|
private |
References __tr2qs_ctx(), KviApplication::activeConsole(), KviKvsVariantList::append(), KviKvsVariant::asString(), KviKvsVariant::copyFrom(), EventPing, EventStarted, EventStderr, EventStdout, EventTerminated, g_pApp, KviKvsScript::HaltEncountered, _KviKvsProcessDescriptorData::iFlags, KviKvsVariant::isNothing(), KVI_KVS_PROCESSDESCRIPTOR_KILLIFNOWINDOW, KVI_OUT_PARSERERROR, m_bDeletePending, m_pData, m_pExtendedRunTimeData, m_pProcess, KviWindow::output(), _KviKvsProcessDescriptorData::pCallback, _KviKvsProcessDescriptorData::pMagic, KviKvsScript::PreserveParams, _KviKvsProcessDescriptorData::pWnd, KviKvsScript::run(), KviKvsVariantList::setAutoDelete(), and KviApplication::windowExists().
Referenced by maxRunTimeExpired(), ping(), processExited(), processStarted(), readStderr(), and readStdout().
void KviKvsProcessAsyncOperation::triggerSelfDelete |
( |
| ) |
|
|
private |
friend class KviKvsProcessManager |
|
friend |
bool KviKvsProcessAsyncOperation::m_bDeletePending |
|
private |
QTimer* KviKvsProcessAsyncOperation::m_pPingTimer |
|
private |
QProcess* KviKvsProcessAsyncOperation::m_pProcess |
|
private |
QTimer* KviKvsProcessAsyncOperation::m_pRunTimeTimer |
|
private |
QString KviKvsProcessAsyncOperation::m_szStderrBuffer |
|
private |
QString KviKvsProcessAsyncOperation::m_szStdoutBuffer |
|
private |
The documentation for this class was generated from the following files: