summaryrefslogtreecommitdiffstats
path: root/src/frontend.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-10-08 00:13:25 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-10-08 05:14:53 +0200
commit84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch)
tree770861aa9033e1dc6c5168358194ff85b32dd429 /src/frontend.h
parent57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff)
downloadkscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz
kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip
Initial TQt conversion
Diffstat (limited to 'src/frontend.h')
-rw-r--r--src/frontend.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/frontend.h b/src/frontend.h
index 246128a..801f49c 100644
--- a/src/frontend.h
+++ b/src/frontend.h
@@ -28,7 +28,7 @@
#ifndef FRONTEND_H
#define FRONTEND_H
-#include <qobject.h>
+#include <ntqobject.h>
#include <kprocess.h>
@@ -48,7 +48,7 @@ public:
/**
* @return The text associated with this token
*/
- const QString& getData() const { return m_sData; }
+ const TQString& getData() const { return m_sData; }
/**
* @return A pointer to the next token in the strem.
@@ -57,7 +57,7 @@ public:
protected:
/** Free text associated with the token. */
- QString m_sData;
+ TQString m_sData;
/** A pointer to the next token in the stream. */
FrontendToken* m_pNext;
@@ -81,14 +81,14 @@ public:
Frontend(uint, bool bAutoDelete = false);
~Frontend();
- virtual bool run(const QString&, const QStringList&,
- const QString& sWorkDir = "", bool bBlock = false);
+ virtual bool run(const TQString&, const TQStringList&,
+ const TQString& sWorkDir = "", bool bBlock = false);
void kill();
/**
* @return An string describing the error which made run() fail
*/
- const QString& getRunError() { return m_sError; }
+ const TQString& getRunError() { return m_sError; }
signals:
/**
@@ -122,7 +122,7 @@ signals:
/**
* Emitted when an error message is produced by the back-end process.
*/
- void error(const QString& sMsg);
+ void error(const TQString& sMsg);
protected:
/** A set of possible delimiters for parsing process output. */
@@ -154,7 +154,7 @@ protected:
ParserDelim m_delim;
/** An error string produced if run() fails. */
- QString m_sError;
+ TQString m_sError;
/**
* Handles a text token received on the Standard Output stream of the
@@ -168,9 +168,9 @@ protected:
* @result A ParseResult value, indicating what should be done with the
* new token
*/
- virtual ParseResult parseStdout(QString& sToken, ParserDelim delim) = 0;
+ virtual ParseResult parseStdout(TQString& sToken, ParserDelim delim) = 0;
- virtual void parseStderr(const QString&);
+ virtual void parseStderr(const TQString&);
/**
* Called when the process exits.
@@ -202,7 +202,7 @@ private:
void addToken(FrontendToken*);
void removeToken();
void removeRecord();
- bool tokenize(char**, int*, QString&, ParserDelim&);
+ bool tokenize(char**, int*, TQString&, ParserDelim&);
private slots:
void slotReadStdout(KProcess*, char*, int);