diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /ksirc/dccManager.h | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/dccManager.h')
-rw-r--r-- | ksirc/dccManager.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/ksirc/dccManager.h b/ksirc/dccManager.h index f9d9a45a..7eb7822b 100644 --- a/ksirc/dccManager.h +++ b/ksirc/dccManager.h @@ -26,8 +26,9 @@ class dccItem : public TQObject, public KListViewItem { Q_OBJECT + TQ_OBJECT public: - enum dccStatus { + enum dcctqStatus { dccRecving, dccOpen, dccWaitOnResume, @@ -46,11 +47,11 @@ public: dccSend }; - dccItem( KListView *, dccManager *, enum dccType, const TQString &file, const TQString &who, enum dccStatus, unsigned int size ); - dccItem( KListViewItem *, dccManager *, enum dccType, const TQString &file, const TQString &who, enum dccStatus, unsigned int size ); + dccItem( KListView *, dccManager *, enum dccType, const TQString &file, const TQString &who, enum dcctqStatus, unsigned int size ); + dccItem( KListViewItem *, dccManager *, enum dccType, const TQString &file, const TQString &who, enum dcctqStatus, unsigned int size ); virtual ~dccItem(); - void changeStatus(enum dccStatus); + void changetqStatus(enum dcctqStatus); void setReceivedBytes(int bytes); void setWhoPostfix(const TQString &post); @@ -59,7 +60,7 @@ public: const TQString who() { return m_who; } const TQString file() { return m_file; } - enum dccStatus status() { return m_status; } + enum dcctqStatus status() { return m_status; } enum dccType type() { return m_type; } double getPercent() { return m_percent; } @@ -70,7 +71,7 @@ signals: void itemRenamed(dccItem *, TQString oldNick, TQString oldFile); protected: - TQString enumToStatus(enum dccStatus); + TQString enumTotqStatus(enum dcctqStatus); virtual void okRename ( int col ); virtual void cancelRename ( int col ); @@ -83,7 +84,7 @@ private: TQString m_post; int m_percent; unsigned int m_size; - enum dccStatus m_status; + enum dcctqStatus m_status; const enum dccType m_type; time_t m_stime; time_t m_lasttime; @@ -95,14 +96,15 @@ class dccNew; class dccManager : public dccManagerbase { Q_OBJECT + TQ_OBJECT public: - dccManager( TQWidget *parent = 0, const char *name = 0 ); + dccManager( TQWidget *tqparent = 0, const char *name = 0 ); ~dccManager(); - dccItem *newSendItem(TQString file, TQString who, enum dccItem::dccStatus, unsigned int size); - dccItem *newGetItem(TQString file, TQString who, enum dccItem::dccStatus, unsigned int size); - dccItem *newChatItem(TQString who, enum dccItem::dccStatus); + dccItem *newSendItem(TQString file, TQString who, enum dccItem::dcctqStatus, unsigned int size); + dccItem *newGetItem(TQString file, TQString who, enum dccItem::dcctqStatus, unsigned int size); + dccItem *newChatItem(TQString who, enum dccItem::dcctqStatus); void doChanged() { emit changed(false, TQString("dcc activity")); }; |