summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/liboscar/oscarmessage.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/oscar/liboscar/oscarmessage.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/oscar/liboscar/oscarmessage.h')
-rw-r--r--kopete/protocols/oscar/liboscar/oscarmessage.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/kopete/protocols/oscar/liboscar/oscarmessage.h b/kopete/protocols/oscar/liboscar/oscarmessage.h
index 7f081054..f6f08fd9 100644
--- a/kopete/protocols/oscar/liboscar/oscarmessage.h
+++ b/kopete/protocols/oscar/liboscar/oscarmessage.h
@@ -21,10 +21,10 @@
#ifndef _OSCARMESSAGE_H_
#define _OSCARMESSAGE_H_
-#include <qglobal.h>
-#include <qstring.h>
-#include <qcstring.h>
-#include <qdatetime.h>
+#include <tqglobal.h>
+#include <tqstring.h>
+#include <tqcstring.h>
+#include <tqdatetime.h>
#include "kopete_export.h"
#include "oscartypes.h"
@@ -62,36 +62,36 @@ public:
Message();
- Message( Encoding messageEncoding, const QByteArray& messageText, int channel, int properties, QDateTime timestamp );
- Message( Encoding messageEncoding, const QCString& messageText, int channel, int properties, QDateTime timestamp );
- Message( Encoding messageEncoding, const QString& messageText, int channel, int properties, QDateTime timestamp, QTextCodec* codec = 0 );
+ Message( Encoding messageEncoding, const TQByteArray& messageText, int channel, int properties, TQDateTime timestamp );
+ Message( Encoding messageEncoding, const TQCString& messageText, int channel, int properties, TQDateTime timestamp );
+ Message( Encoding messageEncoding, const TQString& messageText, int channel, int properties, TQDateTime timestamp, TQTextCodec* codec = 0 );
/** Get the sender of the message */
- QString sender() const;
+ TQString sender() const;
/** Set the sender of the message */
- void setSender( const QString& sender );
+ void setSender( const TQString& sender );
/** Get the receiver of the message */
- QString receiver() const;
+ TQString receiver() const;
/** Set the receiver of the message */
- void setReceiver( const QString& receiver);
+ void setReceiver( const TQString& receiver);
/** get the message text */
- QString text( QTextCodec* codec ) const;
+ TQString text( TQTextCodec* codec ) const;
/** set the message text */
- void setText( Encoding newEncoding, const QString& newText, QTextCodec* codec = 0);
+ void setText( Encoding newEncoding, const TQString& newText, TQTextCodec* codec = 0);
/** get the message text as a bytearray for decoding */
- QByteArray textArray() const;
+ TQByteArray textArray() const;
/** set the message text as a bytearray for decoding */
- void setTextArray( const QByteArray& newTextArray );
+ void setTextArray( const TQByteArray& newTextArray );
/** set the mesasge text as a bytearray for decoding */
- void setTextArray( const QCString& newTextArray );
+ void setTextArray( const TQCString& newTextArray );
/** get the message properties */
int properties() const;
@@ -109,16 +109,16 @@ public:
void setType( int newType );
/** get the timestamp of the message */
- QDateTime timestamp() const;
+ TQDateTime timestamp() const;
/** set the timestamp of the message */
- void setTimestamp( QDateTime ts );
+ void setTimestamp( TQDateTime ts );
/** get the ICBM cookie of the message */
- QByteArray icbmCookie() const;
+ TQByteArray icbmCookie() const;
/** set the ICBM cookie of the message */
- void setIcbmCookie( const QByteArray& cookie );
+ void setIcbmCookie( const TQByteArray& cookie );
/** get the protocol version (channel 2 messages only) */
int protocolVersion() const;
@@ -145,10 +145,10 @@ public:
void setExchange( Oscar::WORD );
/** get the chat room that this message is for */
- QString chatRoom() const;
+ TQString chatRoom() const;
/** set the chat room that this message is for */
- void setChatRoom( const QString& );
+ void setChatRoom( const TQString& );
/** get the message encoding */
Encoding encoding() const;
@@ -160,18 +160,18 @@ public:
private:
//TODO d-pointer
- QString m_sender;
- QString m_receiver;
+ TQString m_sender;
+ TQString m_receiver;
int m_channel;
int m_properties;
int m_messageType;
int m_protocolVersion;
int m_channel2Counter;
- QByteArray m_icbmCookie;
- QByteArray m_textArray;
- QDateTime m_timestamp;
+ TQByteArray m_icbmCookie;
+ TQByteArray m_textArray;
+ TQDateTime m_timestamp;
Oscar::WORD m_exchange;
- QString m_chatRoom;
+ TQString m_chatRoom;
Encoding m_encoding;
};