diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /ksirc/ioDCC.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/ioDCC.h')
-rw-r--r-- | ksirc/ioDCC.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/ksirc/ioDCC.h b/ksirc/ioDCC.h new file mode 100644 index 00000000..76a93941 --- /dev/null +++ b/ksirc/ioDCC.h @@ -0,0 +1,65 @@ +#ifndef KIODCCC_H +#define KIODCCC_H + +#include <qdict.h> +#include <qobject.h> +#include <qguardedptr.h> + +#include "dccManager.h" +#include "dccToplevel.h" +#include "messageReceiver.h" + +class KSProgress; + +struct DCCInfo { + QString nick; + QString cancelMessage; + int LastSize; + int PercentSize; + bool inProgress; +}; + +class KSircIODCC : public QObject, + public KSircMessageReceiver +{ + Q_OBJECT +public: + KSircIODCC(KSircProcess *_proc); + virtual ~KSircIODCC(); + + virtual void sirc_receive(QCString, bool broadcast); + virtual void control_message(int, QString); + virtual filterRuleList *defaultRules(); + + virtual void showMgr(); + +protected slots: + void cancelTransfer(QString); + void getFile(); + void forgetFile(); + + void dccConnectClicked(dccItem *); + void dccResumeClicked(dccItem *); + void dccRenameClicked(dccItem *); + void dccAbortClicked(dccItem *); + + void dccRenameDone(dccItem *, QString, QString); + +signals: + void outputLine(QCString); + +private: +// QDict<QProgressDialog> DlgList; + //QDict<KSProgress> DlgList; + //QDict<DCCInfo> DCCStatus; + QDict<dccItem> DCCGetItems; + QDict<dccItem> DCCSendItems; + QDict<dccItem> DCCChatItems; + + //dccDialog *pending; + QGuardedPtr<dccTopLevel> mgr; + + KSircProcess *proc; +}; + +#endif |