diff options
author | Slávek Banko <[email protected]> | 2013-10-08 00:16:56 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-10-08 05:14:54 +0200 |
commit | 78114a50964bc7bb5d7d99f713bb815ed5a623ef (patch) | |
tree | 871f5d697fb8825c02152c43ea0e671319b742cf /src/frontend.cpp | |
parent | 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (diff) | |
download | kscope-78114a50964bc7bb5d7d99f713bb815ed5a623ef.tar.gz kscope-78114a50964bc7bb5d7d99f713bb815ed5a623ef.zip |
Initial TDE conversion
Diffstat (limited to 'src/frontend.cpp')
-rw-r--r-- | src/frontend.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/frontend.cpp b/src/frontend.cpp index cd01b3b..28e0342 100644 --- a/src/frontend.cpp +++ b/src/frontend.cpp @@ -27,7 +27,7 @@ #include <ntqfileinfo.h> #include <ntqdir.h> -#include <klocale.h> +#include <tdelocale.h> #include "frontend.h" /** @@ -36,7 +36,7 @@ * @param bAutoDelete (Optional) true to delete the object when the process * terminates, false (default) otherwise */ -Frontend::Frontend(uint nRecordSize, bool bAutoDelete) : KProcess(), +Frontend::Frontend(uint nRecordSize, bool bAutoDelete) : TDEProcess(), m_nRecords(0), m_pHeadToken(NULL), m_pTailToken(NULL), @@ -46,16 +46,16 @@ Frontend::Frontend(uint nRecordSize, bool bAutoDelete) : KProcess(), m_nRecordSize(nRecordSize) { // Parse data on the standard output - connect(this, SIGNAL(receivedStdout(KProcess*, char*, int)), this, - SLOT(slotReadStdout(KProcess*, char*, int))); + connect(this, SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, + SLOT(slotReadStdout(TDEProcess*, char*, int))); // Parse data on the standard error - connect(this, SIGNAL(receivedStderr(KProcess*, char*, int)), this, - SLOT(slotReadStderr(KProcess*, char*, int))); + connect(this, SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, + SLOT(slotReadStderr(TDEProcess*, char*, int))); // Delete the process object when the process exits - connect(this, SIGNAL(processExited(KProcess*)), this, - SLOT(slotProcessExit(KProcess*))); + connect(this, SIGNAL(processExited(TDEProcess*)), this, + SLOT(slotProcessExit(TDEProcess*))); } /** @@ -99,8 +99,8 @@ bool Frontend::run(const TQString& sName, const TQStringList& slArgs, setWorkingDirectory(sWorkDir); // Execute the child process - if (!start(bBlock ? KProcess::Block : KProcess::NotifyOnExit, - KProcess::All)) { + if (!start(bBlock ? TDEProcess::Block : TDEProcess::NotifyOnExit, + TDEProcess::All)) { m_sError = sName + i18n(": Failed to start process"); return false; } @@ -117,7 +117,7 @@ bool Frontend::run(const TQString& sName, const TQStringList& slArgs, void Frontend::kill() { m_bKilled = true; - KProcess::kill(); + TDEProcess::kill(); emit aborted(); } @@ -258,7 +258,7 @@ void Frontend::parseStderr(const TQString& sText) /** * Deletes the process object upon the process' exit. */ -void Frontend::slotProcessExit(KProcess*) +void Frontend::slotProcessExit(TDEProcess*) { // Allow specialised clean-up by inheriting classes finalize(); @@ -279,7 +279,7 @@ void Frontend::slotProcessExit(KProcess*) * The method reads whatever data is queued, and sends it to be interpreted * by parseStdout(). */ -void Frontend::slotReadStdout(KProcess*, char* pBuffer, int nSize) +void Frontend::slotReadStdout(TDEProcess*, char* pBuffer, int nSize) { char* pLocalBuf; TQString sToken; @@ -350,7 +350,7 @@ void Frontend::slotReadStdout(KProcess*, char* pBuffer, int nSize) * The method reads whatever data is queued, and sends it to be interpreted * by parseStderr(). */ -void Frontend::slotReadStderr(KProcess*, char* pBuffer, int nSize) +void Frontend::slotReadStderr(TDEProcess*, char* pBuffer, int nSize) { TQString sBuf; |