diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /ksysguard/gui/ksgrd/SensorAgent.h | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysguard/gui/ksgrd/SensorAgent.h')
-rw-r--r-- | ksysguard/gui/ksgrd/SensorAgent.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/ksysguard/gui/ksgrd/SensorAgent.h b/ksysguard/gui/ksgrd/SensorAgent.h index e30deb510..0bf776547 100644 --- a/ksysguard/gui/ksgrd/SensorAgent.h +++ b/ksysguard/gui/ksgrd/SensorAgent.h @@ -21,8 +21,8 @@ #ifndef KSG_SENSORAGENT_H #define KSG_SENSORAGENT_H -#include <qobject.h> -#include <qptrlist.h> +#include <tqobject.h> +#include <tqptrlist.h> class KProcess; class KShellProcess; @@ -51,8 +51,8 @@ class KDE_EXPORT SensorAgent : public QObject SensorAgent( SensorManager *sm ); virtual ~SensorAgent(); - virtual bool start( const QString &host, const QString &shell, - const QString &command = "", int port = -1 ) = 0; + virtual bool start( const TQString &host, const TQString &shell, + const TQString &command = "", int port = -1 ) = 0; /** This function should only be used by the the SensorManager and @@ -66,19 +66,19 @@ class KDE_EXPORT SensorAgent : public QObject used by the SensorAgent. So it can be any value the client suits to use. */ - bool sendRequest( const QString &req, SensorClient *client, int id = 0 ); + bool sendRequest( const TQString &req, SensorClient *client, int id = 0 ); - virtual void hostInfo( QString &sh, QString &cmd, int &port ) const = 0; + virtual void hostInfo( TQString &sh, TQString &cmd, int &port ) const = 0; void disconnectClient( SensorClient *client ); - const QString &hostName() const; + const TQString &hostName() const; signals: void reconfigure( const SensorAgent* ); protected: - void processAnswer( const QString &buffer ); + void processAnswer( const TQString &buffer ); void executeCommand(); SensorManager *sensorManager(); @@ -89,23 +89,23 @@ class KDE_EXPORT SensorAgent : public QObject void setTransmitting( bool value ); bool transmitting() const; - void setHostName( const QString &hostName ); + void setHostName( const TQString &hostName ); private: virtual bool writeMsg( const char *msg, int len ) = 0; virtual bool txReady() = 0; int mState; - QPtrList<SensorRequest> mInputFIFO; - QPtrList<SensorRequest> mProcessingFIFO; - QString mAnswerBuffer; - QString mErrorBuffer; + TQPtrList<SensorRequest> mInputFIFO; + TQPtrList<SensorRequest> mProcessingFIFO; + TQString mAnswerBuffer; + TQString mErrorBuffer; SensorManager *mSensorManager; bool mDaemonOnLine; bool mTransmitting; - QString mHostName; + TQString mHostName; }; /** @@ -114,11 +114,11 @@ class KDE_EXPORT SensorAgent : public QObject class SensorRequest { public: - SensorRequest( const QString &request, SensorClient *client, int id ); + SensorRequest( const TQString &request, SensorClient *client, int id ); ~SensorRequest(); - void setRequest( const QString& ); - QString request() const; + void setRequest( const TQString& ); + TQString request() const; void setClient( SensorClient* ); SensorClient *client(); @@ -127,7 +127,7 @@ class SensorRequest int id(); private: - QString mRequest; + TQString mRequest; SensorClient *mClient; int mId; }; |