summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/ksgrd/SensorManager.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /ksysguard/gui/ksgrd/SensorManager.h
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-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/SensorManager.h')
-rw-r--r--ksysguard/gui/ksgrd/SensorManager.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/ksysguard/gui/ksgrd/SensorManager.h b/ksysguard/gui/ksgrd/SensorManager.h
index 8eb778009..7f4e85da7 100644
--- a/ksysguard/gui/ksgrd/SensorManager.h
+++ b/ksysguard/gui/ksgrd/SensorManager.h
@@ -23,8 +23,8 @@
#include <kconfig.h>
-#include <qdict.h>
-#include <qobject.h>
+#include <tqdict.h>
+#include <tqobject.h>
#include <SensorAgent.h>
@@ -53,32 +53,32 @@ class KDE_EXPORT SensorManager : public QObject
SensorManager();
~SensorManager();
- bool engageHost( const QString &hostName );
- bool engage( const QString &hostName, const QString &shell = "ssh",
- const QString &command = "", int port = -1 );
+ bool engageHost( const TQString &hostName );
+ bool engage( const TQString &hostName, const TQString &shell = "ssh",
+ const TQString &command = "", int port = -1 );
void requestDisengage( const SensorAgent *agent );
bool disengage( const SensorAgent *agent );
- bool disengage( const QString &hostName );
- bool resynchronize( const QString &hostName );
+ bool disengage( const TQString &hostName );
+ bool resynchronize( const TQString &hostName );
void hostLost( const SensorAgent *agent );
- void notify( const QString &msg ) const;
+ void notify( const TQString &msg ) const;
- void setBroadcaster( QWidget *wdg );
+ void setBroadcaster( TQWidget *wdg );
- virtual bool event( QEvent *event );
+ virtual bool event( TQEvent *event );
- bool sendRequest( const QString &hostName, const QString &request,
+ bool sendRequest( const TQString &hostName, const TQString &request,
SensorClient *client, int id = 0 );
- const QString hostName( const SensorAgent *sensor ) const;
- bool hostInfo( const QString &host, QString &shell,
- QString &command, int &port );
+ const TQString hostName( const SensorAgent *sensor ) const;
+ bool hostInfo( const TQString &host, TQString &shell,
+ TQString &command, int &port );
- const QString& translateUnit( const QString &unit ) const;
- const QString& translateSensorPath( const QString &path ) const;
- const QString& translateSensorType( const QString &type ) const;
- QString translateSensor(const QString& u) const;
+ const TQString& translateUnit( const TQString &unit ) const;
+ const TQString& translateSensorPath( const TQString &path ) const;
+ const TQString& translateSensorType( const TQString &type ) const;
+ TQString translateSensor(const TQString& u) const;
void readProperties( KConfig *cfg );
void saveProperties( KConfig *cfg );
@@ -90,33 +90,33 @@ class KDE_EXPORT SensorManager : public QObject
signals:
void update();
- void hostConnectionLost( const QString &hostName );
+ void hostConnectionLost( const TQString &hostName );
protected:
- QDict<SensorAgent> mAgents;
+ TQDict<SensorAgent> mAgents;
private:
/**
These dictionary stores the localized versions of the sensor
descriptions and units.
*/
- QDict<QString> mDescriptions;
- QDict<QString> mUnits;
- QDict<QString> mDict;
- QDict<QString> mTypes;
+ TQDict<TQString> mDescriptions;
+ TQDict<TQString> mUnits;
+ TQDict<TQString> mDict;
+ TQDict<TQString> mTypes;
- QWidget* mBroadcaster;
+ TQWidget* mBroadcaster;
HostConnector* mHostConnector;
};
KDE_EXPORT extern SensorManager* SensorMgr;
-class KDE_EXPORT SensorManagerIterator : public QDictIterator<SensorAgent>
+class KDE_EXPORT SensorManagerIterator : public TQDictIterator<SensorAgent>
{
public:
SensorManagerIterator( const SensorManager *sm )
- : QDictIterator<SensorAgent>( sm->mAgents ) { }
+ : TQDictIterator<SensorAgent>( sm->mAgents ) { }
~SensorManagerIterator() { }
};