diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/msn/transport.h | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-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/transport.h')
-rw-r--r-- | kopete/protocols/msn/transport.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kopete/protocols/msn/transport.h b/kopete/protocols/msn/transport.h index 0dae0f32..eb190325 100644 --- a/kopete/protocols/msn/transport.h +++ b/kopete/protocols/msn/transport.h @@ -18,9 +18,9 @@ #define PEERTOPEERTRANSPORT_H //BEGIN QT Includes -#include <qobject.h> -#include <qguardedptr.h> -#include <qvaluelist.h> +#include <tqobject.h> +#include <tqguardedptr.h> +#include <tqvaluelist.h> //END //BEGIN KDE Includes @@ -52,10 +52,10 @@ class Transport : public QObject Q_OBJECT public: /** @brief Creates a new instance of the class Transport. */ - Transport(QObject* parent, const char* name = 0l); + Transport(TQObject* parent, const char* name = 0l); ~Transport(); /** @brief Get a transport bridge with the specified address, port, type and identifier. */ - TransportBridge* getBridge(const QString& address, Q_UINT16 port, TransportBridgeType type, const QString& identifier); + TransportBridge* getBridge(const TQString& address, Q_UINT16 port, TransportBridgeType type, const TQString& identifier); /** @brief Sets the default transport bridge. */ void setDefaultBridge(MSNSwitchBoardSocket* mss); @@ -63,15 +63,15 @@ private slots: /** @brief Invokes when a message is received on a transport bridge. */ // void slotOnReceive(Message& message); /** @brief Invokes when a message is received on the default transport bridge (relay). */ - void slotOnReceive(const QString& contact, const QByteArray& bytes); + void slotOnReceive(const TQString& contact, const TQByteArray& bytes); private: /** @brief Known SocketAddresses of peers. */ - QMap<QString, KNetwork::KInetSocketAddress> mAddresses; + TQMap<TQString, KNetwork::KInetSocketAddress> mAddresses; /** @brief The list the connected transport bridges. */ - QValueList<TransportBridge*> mBridges; + TQValueList<TransportBridge*> mBridges; /** @brief The default transport bridge (relay). */ - QGuardedPtr<MSNSwitchBoardSocket> mDefaultBridge; + TQGuardedPtr<MSNSwitchBoardSocket> mDefaultBridge; /** @brief Message formatter used to ser/deser message. */ MessageFormatter *mFormatter; }; @@ -85,9 +85,9 @@ public: protected: /** @brief Creates a new instance of the class TransportBridge with the specified address and formatter. */ - TransportBridge(const KNetwork::KInetSocketAddress& to, MessageFormatter* formatter, QObject* parent, const char* name = 0l); + TransportBridge(const KNetwork::KInetSocketAddress& to, MessageFormatter* formatter, TQObject* parent, const char* name = 0l); /** @brief Creates a new instance of the class TransportBridge with the specified socket and formatter. */ - TransportBridge(KNetwork::KClientSocketBase* socket, MessageFormatter* formatter, QObject* parent, const char* name = 0l); + TransportBridge(KNetwork::KClientSocketBase* socket, MessageFormatter* formatter, TQObject* parent, const char* name = 0l); public: /** @brief Creates a connection between two peers. */ @@ -106,8 +106,8 @@ protected slots: signals: void bridgeConnect(); void bridgeDisconnect(); - void bridgeError(const QString& e); - void bytesReceived(const QByteArray&); + void bridgeError(const TQString& e); + void bytesReceived(const TQByteArray&); protected: @@ -128,8 +128,8 @@ public: virtual ~TcpTransportBridge(); private: - TcpTransportBridge(const KNetwork::KInetSocketAddress& to, MessageFormatter* formatter, QObject* parent, const char* name = 0l); - TcpTransportBridge(KNetwork::KClientSocketBase* socket, MessageFormatter* formatter, QObject* parent, const char* name = 0l); + TcpTransportBridge(const KNetwork::KInetSocketAddress& to, MessageFormatter* formatter, TQObject* parent, const char* name = 0l); + TcpTransportBridge(KNetwork::KClientSocketBase* socket, MessageFormatter* formatter, TQObject* parent, const char* name = 0l); protected slots: virtual void slotOnConnect(); @@ -153,8 +153,8 @@ private: ~Buffer(); public: - void write(const QByteArray& bytes); - QByteArray read(Q_UINT32 length); + void write(const TQByteArray& bytes); + TQByteArray read(Q_UINT32 length); }; Buffer mBuffer; |