summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/msn/p2p.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/p2p.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/p2p.h')
-rw-r--r--kopete/protocols/msn/p2p.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/kopete/protocols/msn/p2p.h b/kopete/protocols/msn/p2p.h
index c9b29af1..426b8dc5 100644
--- a/kopete/protocols/msn/p2p.h
+++ b/kopete/protocols/msn/p2p.h
@@ -18,7 +18,7 @@
#define P2P_H
// Qt includes
-#include <qobject.h>
+#include <tqobject.h>
#include "messageformatter.h"
#include "kopete_export.h"
@@ -41,7 +41,7 @@ namespace System{
public:
~Guid(){}
static Guid newGuid();
- QString toString();
+ TQString toString();
private:
Guid(){}
@@ -78,19 +78,19 @@ namespace P2P{
struct Message
{
public:
- QString mimeVersion;
- QString contentType;
- QString destination;
- QString source;
+ TQString mimeVersion;
+ TQString contentType;
+ TQString destination;
+ TQString source;
TransportHeader header;
- QByteArray body;
+ TQByteArray body;
Q_INT32 applicationIdentifier;
bool attachApplicationIdentifier;
};
class KOPETE_EXPORT Uid
{
- public: static QString createUid();
+ public: static TQString createUid();
};
class KOPETE_EXPORT TransferContext : public QObject
@@ -103,20 +103,20 @@ namespace P2P{
void error();
virtual void processMessage(const P2P::Message& message) = 0;
void sendDataPreparation();
- void sendMessage(MessageType type, const QString& content=QString::null, Q_INT32 flag=0, Q_INT32 appId=0);
+ void sendMessage(MessageType type, const TQString& content=TQString::null, Q_INT32 flag=0, Q_INT32 appId=0);
void setType(TransferType type);
public:
Q_UINT32 m_sessionId;
Q_UINT32 m_identifier;
- QFile *m_file;
+ TQFile *m_file;
Q_UINT32 m_transactionId;
Q_UINT32 m_ackSessionIdentifier;
Q_UINT32 m_ackUniqueIdentifier;
Kopete::Transfer *m_transfer;
- QString m_branch;
- QString m_callId;
- QString m_object;
+ TQString m_branch;
+ TQString m_callId;
+ TQString m_object;
public slots:
@@ -124,9 +124,9 @@ namespace P2P{
void readyWrite();
protected:
- TransferContext(const QString& contact, P2P::Dispatcher *dispatcher,Q_UINT32 sessionId);
- void sendData(const QByteArray& bytes);
- void sendMessage(P2P::Message& outbound, const QByteArray& body);
+ TransferContext(const TQString& contact, P2P::Dispatcher *dispatcher,Q_UINT32 sessionId);
+ void sendData(const TQByteArray& bytes);
+ void sendMessage(P2P::Message& outbound, const TQByteArray& body);
virtual void readyToSend();
Q_UINT32 m_baseIdentifier;
@@ -136,8 +136,8 @@ namespace P2P{
Q_INT64 m_offset;
Q_INT64 m_totalDataSize;
P2P::MessageFormatter m_messageFormatter;
- QString m_recipient;
- QString m_sender;
+ TQString m_recipient;
+ TQString m_sender;
KNetwork::KBufferedSocket *m_socket;
CommunicationState m_state;
TransferType m_type;