diff options
Diffstat (limited to 'ksirc/dccManager.h')
-rw-r--r-- | ksirc/dccManager.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/ksirc/dccManager.h b/ksirc/dccManager.h index 41412479..6e8c464c 100644 --- a/ksirc/dccManager.h +++ b/ksirc/dccManager.h @@ -12,7 +12,7 @@ #include <time.h> -#include <qobject.h> +#include <tqobject.h> #include "dccManagerbase.h" #include "klistview.h" @@ -22,7 +22,7 @@ class dccManager; class QSignal; class QObject; -class dccItem : public QObject, +class dccItem : public TQObject, public KListViewItem { Q_OBJECT @@ -46,19 +46,19 @@ public: dccSend }; - dccItem( KListView *, dccManager *, enum dccType, const QString &file, const QString &who, enum dccStatus, unsigned int size ); - dccItem( KListViewItem *, dccManager *, enum dccType, const QString &file, const QString &who, enum dccStatus, unsigned int size ); + 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 ); virtual ~dccItem(); void changeStatus(enum dccStatus); void setReceivedBytes(int bytes); - void setWhoPostfix(const QString &post); - void changeFilename(const QString &file); - void changeWho(const QString &who); + void setWhoPostfix(const TQString &post); + void changeFilename(const TQString &file); + void changeWho(const TQString &who); - const QString who() { return m_who; } - const QString file() { return m_file; } + const TQString who() { return m_who; } + const TQString file() { return m_file; } enum dccStatus status() { return m_status; } enum dccType type() { return m_type; } double getPercent() { return m_percent; } @@ -66,11 +66,11 @@ public: void doRename(); signals: - void statusChanged(QListViewItem *); - void itemRenamed(dccItem *, QString oldNick, QString oldFile); + void statusChanged(TQListViewItem *); + void itemRenamed(dccItem *, TQString oldNick, TQString oldFile); protected: - QString enumToStatus(enum dccStatus); + TQString enumToStatus(enum dccStatus); virtual void okRename ( int col ); virtual void cancelRename ( int col ); @@ -78,9 +78,9 @@ protected: private: dccManager *m_manager; - QString m_who; - QString m_file; - QString m_post; + TQString m_who; + TQString m_file; + TQString m_post; int m_percent; unsigned int m_size; enum dccStatus m_status; @@ -97,14 +97,14 @@ class dccManager : public dccManagerbase Q_OBJECT public: - dccManager( QWidget *parent = 0, const char *name = 0 ); + dccManager( TQWidget *parent = 0, const char *name = 0 ); ~dccManager(); - dccItem *newSendItem(QString file, QString who, enum dccItem::dccStatus, unsigned int size); - dccItem *newGetItem(QString file, QString who, enum dccItem::dccStatus, unsigned int size); - dccItem *newChatItem(QString who, enum dccItem::dccStatus); + 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); - void doChanged() { emit changed(false, QString("dcc activity")); }; + void doChanged() { emit changed(false, TQString("dcc activity")); }; public slots: virtual void kpbNew_clicked(); @@ -114,17 +114,17 @@ public slots: virtual void kpbAbort_clicked(); signals: - void outputLine(QCString); - void changed(bool, QString); + void outputLine(TQCString); + void changed(bool, TQString); virtual void dccConnectClicked(dccItem *); virtual void dccResumeClicked(dccItem *); virtual void dccRenameClicked(dccItem *); virtual void dccAbortClicked(dccItem *); protected slots: - virtual void getSelChange(QListViewItem *); - virtual void sendSelChange(QListViewItem *); - virtual void dccNewAccepted(int type, QString nick, QString file); + virtual void getSelChange(TQListViewItem *); + virtual void sendSelChange(TQListViewItem *); + virtual void dccNewAccepted(int type, TQString nick, TQString file); private: |