diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 18:16:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 18:16:06 +0000 |
commit | 02a6c8f36311eb6225066df35adf8d00f9cd942b (patch) | |
tree | ceb91c373877f7a69209e184c81b53dc6f9402d7 /src/knemod/knemodaemon.h | |
parent | 09e6e27fe85b2efb28072f1c81f6581fa6837d92 (diff) | |
download | knemo-02a6c8f36311eb6225066df35adf8d00f9cd942b.tar.gz knemo-02a6c8f36311eb6225066df35adf8d00f9cd942b.zip |
TQt4 port knemo
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knemo@1238869 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knemod/knemodaemon.h')
-rw-r--r-- | src/knemod/knemodaemon.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/knemod/knemodaemon.h b/src/knemod/knemodaemon.h index d62c288..e0ac3d9 100644 --- a/src/knemod/knemodaemon.h +++ b/src/knemod/knemodaemon.h @@ -20,10 +20,10 @@ #ifndef KNEMODAEMON_H #define KNEMODAEMON_H -#include <qdict.h> -#include <qcolor.h> -#include <qcstring.h> -#include <qdatetime.h> +#include <tqdict.h> +#include <tqcolor.h> +#include <tqcstring.h> +#include <tqdatetime.h> #include <kdedmodule.h> #include <knotifyclient.h> @@ -31,7 +31,7 @@ #include "data.h" #include "global.h" -class QTimer; +class TQTimer; class KInstance; class Interface; class BackendBase; @@ -49,11 +49,12 @@ class KNemoDaemon : public KDEDModule { K_DCOP Q_OBJECT +// TQ_OBJECT public: /** * Default Constructor */ - KNemoDaemon( const QCString& name ); + KNemoDaemon( const TQCString& name ); /** * Default Destructor @@ -61,7 +62,7 @@ public: virtual ~KNemoDaemon(); // tell the control center module which interface the user selected - static QString sSelectedInterface; + static TQString sSelectedInterface; k_dcop: /* @@ -77,7 +78,7 @@ k_dcop: * user opened the dialog and can preselect the appropriate * interface in the list. */ - virtual QString getSelectedInterface(); + virtual TQString getSelectedInterface(); private: /* @@ -92,15 +93,15 @@ private slots: void updateInterfaces(); private: - QColor mColorVLines; - QColor mColorHLines; - QColor mColorIncoming; - QColor mColorOutgoing; - QColor mColorBackground; + TQColor mColorVLines; + TQColor mColorHLines; + TQColor mColorIncoming; + TQColor mColorOutgoing; + TQColor mColorBackground; // every time this timer expires we will // gather new informations from the backend - QTimer* mPollTimer; + TQTimer* mPollTimer; // our own instance KInstance* mInstance; // needed so that KNotifyClient::event will work @@ -110,11 +111,11 @@ private: // settings for the traffic plotter are stored here PlotterSettings mPlotterSettings; // the name of backend we currently use - QString mBackendName; + TQString mBackendName; // the backend used to update the interface informations BackendBase* mBackend; // a list of all interfaces the user wants to monitor - QDict<Interface> mInterfaceDict; + TQDict<Interface> mInterfaceDict; }; #endif // KNEMODAEMON_H |