From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/protocols/msn/p2p.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kopete/protocols/msn/p2p.h') 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 +#include #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; -- cgit v1.2.1