summaryrefslogtreecommitdiffstats
path: root/ksirc/dockservercontroller.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/dockservercontroller.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/dockservercontroller.h')
-rw-r--r--ksirc/dockservercontroller.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/ksirc/dockservercontroller.h b/ksirc/dockservercontroller.h
index 5c5bdb59..605c9ad5 100644
--- a/ksirc/dockservercontroller.h
+++ b/ksirc/dockservercontroller.h
@@ -3,11 +3,11 @@
#define dockservercontroller_included
#include <ksystemtray.h>
-#include <qdict.h>
-#include <qstring.h>
-#include <qdatetime.h>
-#include <qpixmap.h>
-#include <qstringlist.h>
+#include <tqdict.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
+#include <tqpixmap.h>
+#include <tqstringlist.h>
class QPopupMenu;
class QWidget;
@@ -19,7 +19,7 @@ class QTimer;
class dscNickInfo
{
public:
- dscNickInfo(QString nick, QString server);
+ dscNickInfo(TQString nick, TQString server);
~dscNickInfo();
enum status {
@@ -27,24 +27,24 @@ public:
isOffline
};
- QString nick() { return m_nick; }
- QString server() { return m_server; }
+ TQString nick() { return m_nick; }
+ TQString server() { return m_server; }
- void setOnline() { m_status = isOnline; m_online = QTime::currentTime(); }
- const QTime &online() { return m_online; }
+ void setOnline() { m_status = isOnline; m_online = TQTime::currentTime(); }
+ const TQTime &online() { return m_online; }
- void setOffline() { m_status = isOffline; m_offline = QTime::currentTime(); }
- const QTime offline() { return m_offline; }
+ void setOffline() { m_status = isOffline; m_offline = TQTime::currentTime(); }
+ const TQTime offline() { return m_offline; }
void setStatus(enum status stat) { m_status = stat; }
enum status status() { return m_status; }
private:
- QString m_nick;
- QString m_server;
+ TQString m_nick;
+ TQString m_server;
enum status m_status;
- QTime m_online;
- QTime m_offline;
+ TQTime m_online;
+ TQTime m_offline;
};
@@ -52,21 +52,21 @@ class dockServerController : public KSystemTray
{
Q_OBJECT
public:
- dockServerController(servercontroller *_sc, QWidget *parent = 0x0, const char *_name = 0x0);
+ dockServerController(servercontroller *_sc, TQWidget *parent = 0x0, const char *_name = 0x0);
~dockServerController();
- void startBlink(const QString& reason = QString::null, const QString& text = QString::null);
- void stopBlink(const QString& reason = QString::null, bool clear = false);
+ void startBlink(const TQString& reason = TQString::null, const TQString& text = TQString::null);
+ void stopBlink(const TQString& reason = TQString::null, bool clear = false);
- void nickOnline(QString server, QString nick);
- void nickOffline(QString server, QString nick);
+ void nickOnline(TQString server, TQString nick);
+ void nickOffline(TQString server, TQString nick);
- void serverOpen(QString server);
- void serverClose(QString server);
+ void serverOpen(TQString server);
+ void serverClose(TQString server);
protected:
- void mousePressEvent( QMouseEvent *);
- virtual void showPopupMenu( QPopupMenu *);
+ void mousePressEvent( TQMouseEvent *);
+ virtual void showPopupMenu( TQPopupMenu *);
public slots:
void raiseLastActiveWindow();
@@ -83,26 +83,26 @@ protected slots:
void mainPopHide();
private:
- int intoPopupSorted(QString, QPopupMenu *);
+ int intoPopupSorted(TQString, TQPopupMenu *);
void createMainPopup();
- void raiseWindow(QString server, QString name);
- QDict<dscNickInfo> m_nicks;
+ void raiseWindow(TQString server, TQString name);
+ TQDict<dscNickInfo> m_nicks;
servercontroller *m_sc;
KPopupMenu *mainPop;
- QString m_last_nick;
- QString m_last_server;
+ TQString m_last_nick;
+ TQString m_last_server;
- QPixmap m_pic_dock;
- QPixmap m_pic_info;
+ TQPixmap m_pic_dock;
+ TQPixmap m_pic_info;
bool m_mainPopVisible;
bool m_blinkActive;
bool m_blinkStatus; // true: blue icon, false: normal icon
- QTimer* m_blinkTimer;
+ TQTimer* m_blinkTimer;
- QStringList m_blink_reason;
+ TQStringList m_blink_reason;
};