From 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Oct 2013 00:13:25 +0200 Subject: Initial TQt conversion --- src/frontend.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/frontend.h') 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 +#include #include @@ -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); -- cgit v1.2.1