summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/msn/dispatcher.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 /kopete/protocols/msn/dispatcher.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 'kopete/protocols/msn/dispatcher.h')
-rw-r--r--kopete/protocols/msn/dispatcher.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/kopete/protocols/msn/dispatcher.h b/kopete/protocols/msn/dispatcher.h
index 56bd1856..72a9cc12 100644
--- a/kopete/protocols/msn/dispatcher.h
+++ b/kopete/protocols/msn/dispatcher.h
@@ -17,8 +17,8 @@
#ifndef DISPATCHER_H
#define DISPATCHER_H
-#include <qobject.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
#include "kopete_export.h"
@@ -41,30 +41,30 @@ namespace P2P{
class KOPETE_EXPORT Dispatcher : public QObject
{ Q_OBJECT
public:
- Dispatcher(QObject *parent, const QString& contact, const QStringList &ip);
+ Dispatcher(TQObject *parent, const TQString& contact, const TQStringList &ip);
~Dispatcher();
void detach(TransferContext* transfer);
- QString localContact();
- void requestDisplayIcon(const QString& from, const QString& msnObject);
- void sendFile(const QString& path, Q_INT64 fileSize, const QString& to);
- void sendImage(const QString& fileName, const QString& to);
- QString m_pictureUrl;
- QMap<QString, QString> objectList;
+ TQString localContact();
+ void requestDisplayIcon(const TQString& from, const TQString& msnObject);
+ void sendFile(const TQString& path, Q_INT64 fileSize, const TQString& to);
+ void sendImage(const TQString& fileName, const TQString& to);
+ TQString m_pictureUrl;
+ TQMap<TQString, TQString> objectList;
#if MSN_WEBCAM
- void startWebcam(const QString &myHandle, const QString &msgHandle, bool wantToReceive);
+ void startWebcam(const TQString &myHandle, const TQString &msgHandle, bool wantToReceive);
#endif
public slots:
- void slotReadMessage(const QString &from, const QByteArray& stream);
+ void slotReadMessage(const TQString &from, const TQByteArray& stream);
void messageAcknowledged(unsigned int correlationId, bool fullReceive);
signals:
- void sendCommand(const QString &cmd, const QString &args = QString::null, bool addId = true, const QByteArray &body = QByteArray(), bool binary=false);
- void displayIconReceived(KTempFile* file, const QString& msnObject);
- void incomingTransfer(const QString& from, const QString& fileName, Q_INT64 fileSize);
+ void sendCommand(const TQString &cmd, const TQString &args = TQString::null, bool addId = true, const TQByteArray &body = TQByteArray(), bool binary=false);
+ void displayIconReceived(KTempFile* file, const TQString& msnObject);
+ void incomingTransfer(const TQString& from, const TQString& fileName, Q_INT64 fileSize);
private:
class CallbackChannel
@@ -73,7 +73,7 @@ namespace P2P{
CallbackChannel(MSNSwitchBoardSocket *switchboard);
~CallbackChannel();
- Q_UINT32 send(const QByteArray& stream);
+ Q_UINT32 send(const TQByteArray& stream);
private:
MSNSwitchBoardSocket *m_switchboard;
@@ -84,19 +84,19 @@ namespace P2P{
/**
* IP's of this compiter, the first one is the one seen by the server.
*/
- QStringList localIp() { return m_ip; }
+ TQStringList localIp() { return m_ip; }
private:
void dispatch(const P2P::Message& message);
- Kopete::Contact* getContactByAccountId(const QString& accountId);
+ Kopete::Contact* getContactByAccountId(const TQString& accountId);
P2P::MessageFormatter m_messageFormatter;
- QMap<Q_UINT32, P2P::TransferContext*> m_sessions;
- QMap<Q_UINT32, P2P::Message> m_messageBuffer;
- QString m_contact;
+ TQMap<Q_UINT32, P2P::TransferContext*> m_sessions;
+ TQMap<Q_UINT32, P2P::Message> m_messageBuffer;
+ TQString m_contact;
CallbackChannel *m_callbackChannel;
- QStringList m_ip;
+ TQStringList m_ip;
friend class P2P::TransferContext;
friend class P2P::IncomingTransfer;