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/SensorClient.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/SensorClient.h')
-rw-r--r-- | ksysguard/gui/ksgrd/SensorClient.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/ksysguard/gui/ksgrd/SensorClient.h b/ksysguard/gui/ksgrd/SensorClient.h index 30586a8a2..d4e286cb1 100644 --- a/ksysguard/gui/ksgrd/SensorClient.h +++ b/ksysguard/gui/ksgrd/SensorClient.h @@ -24,8 +24,8 @@ #ifndef KSG_SENSORCLIENT_H #define KSG_SENSORCLIENT_H -#include <qptrlist.h> -#include <qstring.h> +#include <tqptrlist.h> +#include <tqstring.h> namespace KSGRD { @@ -46,7 +46,7 @@ class SensorClient been received by the sensor agent. This function must be reimplemented by the sensor client to receive and process this information. */ - virtual void answerReceived( int, const QString& ) { } + virtual void answerReceived( int, const TQString& ) { } /** In case of an unexpected fatal problem with the sensor the sensor @@ -81,14 +81,14 @@ class SensorBoard class SensorTokenizer { public: - SensorTokenizer( const QString &info, QChar separator ) + SensorTokenizer( const TQString &info, TQChar separator ) { - mTokens = QStringList::split( separator, info ); + mTokens = TQStringList::split( separator, info ); } ~SensorTokenizer() { } - const QString& operator[]( unsigned idx ) + const TQString& operator[]( unsigned idx ) { return mTokens[ idx ]; } @@ -99,7 +99,7 @@ class SensorTokenizer } private: - QStringList mTokens; + TQStringList mTokens; }; /** @@ -110,12 +110,12 @@ class SensorTokenizer class SensorIntegerInfo : public SensorTokenizer { public: - SensorIntegerInfo( const QString &info ) + SensorIntegerInfo( const TQString &info ) : SensorTokenizer( info, '\t' ) { } ~SensorIntegerInfo() { } - const QString &name() + const TQString &name() { return (*this)[ 0 ]; } @@ -130,7 +130,7 @@ class SensorIntegerInfo : public SensorTokenizer return (*this)[ 2 ].toLong(); } - const QString &unit() + const TQString &unit() { return (*this)[ 3 ]; } @@ -144,12 +144,12 @@ class SensorIntegerInfo : public SensorTokenizer class SensorFloatInfo : public SensorTokenizer { public: - SensorFloatInfo( const QString &info ) + SensorFloatInfo( const TQString &info ) : SensorTokenizer( info, '\t' ) { } ~SensorFloatInfo() { } - const QString &name() + const TQString &name() { return (*this)[ 0 ]; } @@ -164,7 +164,7 @@ class SensorFloatInfo : public SensorTokenizer return (*this)[ 2 ].toDouble(); } - const QString &unit() + const TQString &unit() { return (*this)[ 3 ]; } @@ -178,12 +178,12 @@ class SensorFloatInfo : public SensorTokenizer class SensorPSLine : public SensorTokenizer { public: - SensorPSLine( const QString &line ) + SensorPSLine( const TQString &line ) : SensorTokenizer( line, '\t' ) { } ~SensorPSLine() { } - const QString& name() + const TQString& name() { return (*this)[ 0 ]; } |