summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/msn/transport.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/msn/transport.h')
-rw-r--r--kopete/protocols/msn/transport.h34
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;