diff options
Diffstat (limited to 'kopete/protocols/msn/msnswitchboardsocket.h')
-rw-r--r-- | kopete/protocols/msn/msnswitchboardsocket.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/kopete/protocols/msn/msnswitchboardsocket.h b/kopete/protocols/msn/msnswitchboardsocket.h index 5a6f9628..70cb7fa0 100644 --- a/kopete/protocols/msn/msnswitchboardsocket.h +++ b/kopete/protocols/msn/msnswitchboardsocket.h @@ -21,9 +21,9 @@ #ifndef MSNSWITCHBOARDSOCKET_H #define MSNSWITCHBOARDSOCKET_H -#include <qobject.h> -#include <qstrlist.h> -#include <qvaluevector.h> +#include <tqobject.h> +#include <tqstrlist.h> +#include <tqvaluevector.h> #include <kstringhandler.h> @@ -48,37 +48,37 @@ public: /** * Contructor: id is the KopeteMessageMangager's id */ - MSNSwitchBoardSocket( MSNAccount * account , QObject *parent); + MSNSwitchBoardSocket( MSNAccount * account , TQObject *parent); ~MSNSwitchBoardSocket(); private: P2P::Dispatcher *m_dispatcher; MSNAccount *m_account; - QString m_myHandle; // our handle + TQString m_myHandle; // our handle // contains the handle of the last person that msg'ed us. // since we receive the actual message by readBlock(), we need // to remember what the handle was of the person sending us the message. - QString m_msgHandle; + TQString m_msgHandle; - QString m_ID; - QString m_auth; - QStringList m_chatMembers; + TQString m_ID; + TQString m_auth; + TQStringList m_chatMembers; //used for emoticons - QValueList<const Kopete::Message> m_msgQueue; + TQValueList<const Kopete::Message> m_msgQueue; unsigned m_recvIcons; - QMap<QString , QPair<QString , KTempFile*> > m_emoticons; + TQMap<TQString , QPair<TQString , KTempFile*> > m_emoticons; Kopete::Message &parseCustomEmoticons(Kopete::Message &msg); - QTimer *m_emoticonTimer; - QPtrList<KTempFile> m_typewrited; + TQTimer *m_emoticonTimer; + TQPtrList<KTempFile> m_typewrited; struct InkMessage{ Q_UINT32 chunks; - QString data; + TQString data; }; - QMap<QString, InkMessage> m_inkMessageBuffer; + TQMap<TQString, InkMessage> m_inkMessageBuffer; /** the number of chunk for currents messages */ unsigned int m_chunks; @@ -87,33 +87,33 @@ private: bool m_clientcapsSent; private: - void DispatchInkMessage(const QString &base64String); + void DispatchInkMessage(const TQString &base64String); protected: /** * Handle an MSN command response line. */ - virtual void parseCommand( const QString &cmd, uint id, - const QString &data ); + virtual void parseCommand( const TQString &cmd, uint id, + const TQString &data ); /** * Handle exceptions that might occur during a chat. */ virtual void handleError( uint code, uint id ); - QString parseFontAttr( QString str, QString attr ); + TQString parseFontAttr( TQString str, TQString attr ); public: - void connectToSwitchBoard( QString ID, QString address, QString auth ); - void setHandle( QString handle ) { m_myHandle = handle; } - void setMsgHandle( QString handle ) { m_msgHandle = handle; } + void connectToSwitchBoard( TQString ID, TQString address, TQString auth ); + void setHandle( TQString handle ) { m_myHandle = handle; } + void setMsgHandle( TQString handle ) { m_msgHandle = handle; } - const QStringList &chatMembers() { return m_chatMembers; } + const TQStringList &chatMembers() { return m_chatMembers; } - void userLeftChat( const QString &handle , const QString &reason ); + void userLeftChat( const TQString &handle , const TQString &reason ); int sendMsg( const Kopete::Message &msg ); - int sendCustomEmoticon(const QString &name, const QString &filename); + int sendCustomEmoticon(const TQString &name, const TQString &filename); int sendNudge(); @@ -121,7 +121,7 @@ public: public slots: void slotCloseSession(); - void slotInviteContact(const QString &handle); + void slotInviteContact(const TQString &handle); /** * Notify the server that the user is typing a message @@ -131,7 +131,7 @@ public slots: void requestDisplayPicture(); /** workaround Bug 113425 . see slotKeepAliveTimer() **/ - QTimer *m_keepAlive; + TQTimer *m_keepAlive; int m_keepAliveNb; @@ -139,9 +139,9 @@ public slots: private slots: void slotOnlineStatusChanged( MSNSocket::OnlineStatus status ); void slotSocketClosed( ); - void slotReadMessage( const QByteArray &bytes ); - void slotEmoticonReceived( KTempFile *, const QString& ); - void slotIncomingFileTransfer(const QString& from, const QString& fileName, Q_INT64 fileSize); + void slotReadMessage( const TQByteArray &bytes ); + void slotEmoticonReceived( KTempFile *, const TQString& ); + void slotIncomingFileTransfer(const TQString& from, const TQString& fileName, Q_INT64 fileSize); void cleanQueue(); /** workaround Bug 113425 . see comment inside the function **/ @@ -149,14 +149,14 @@ private slots: signals: void msgReceived( Kopete::Message &msg ); - void receivedTypingMsg( const QString &contactId, bool isTyping ); + void receivedTypingMsg( const TQString &contactId, bool isTyping ); void msgAcknowledgement(unsigned int, bool); - void userJoined(const QString& handle , const QString &publicName , bool IRO); - void userLeft(const QString& handle , const QString &reason); - void nudgeReceived(const QString &handle); + void userJoined(const TQString& handle , const TQString &publicName , bool IRO); + void userLeft(const TQString& handle , const TQString &reason); + void nudgeReceived(const TQString &handle); void switchBoardClosed( ); - void invitation(const QString& handle, const QString& msg); + void invitation(const TQString& handle, const TQString& msg); }; |