summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/msn/msnsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/msn/msnsocket.h')
-rw-r--r--kopete/protocols/msn/msnsocket.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/kopete/protocols/msn/msnsocket.h b/kopete/protocols/msn/msnsocket.h
index 85df08c7..96bfd0cb 100644
--- a/kopete/protocols/msn/msnsocket.h
+++ b/kopete/protocols/msn/msnsocket.h
@@ -22,11 +22,11 @@
#ifndef MSNSOCKET_H
#define MSNSOCKET_H
-#include <qobject.h>
-#include <qdatastream.h>
-#include <qstringlist.h>
-#include <qtimer.h>
-#include <qvaluelist.h>
+#include <tqobject.h>
+#include <tqdatastream.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
+#include <tqvaluelist.h>
#include "kopete_export.h"
@@ -49,7 +49,7 @@ class KOPETE_EXPORT MSNSocket : public QObject
Q_OBJECT
public:
- MSNSocket(QObject* parent=0l);
+ MSNSocket(TQObject* parent=0l);
~MSNSocket();
/**
@@ -85,7 +85,7 @@ public:
* return the local ip.
* Used for filetransfer
*/
- QString getLocalIP();
+ TQString getLocalIP();
//BEGIN Http
@@ -95,7 +95,7 @@ public:
//END
public slots:
- void connect( const QString &server, uint port );
+ void connect( const TQString &server, uint port );
virtual void disconnect();
@@ -113,15 +113,15 @@ public slots:
*
* return the id
*/
- int sendCommand( const QString &cmd, const QString &args = QString::null,
- bool addId = true, const QByteArray &body = QByteArray() , bool binary=false );
+ int sendCommand( const TQString &cmd, const TQString &args = TQString::null,
+ bool addId = true, const TQByteArray &body = TQByteArray() , bool binary=false );
signals:
/**
* A block read is ready.
* After this the normal line-based reads go on again
*/
- void blockRead( const QByteArray &block );
+ void blockRead( const TQByteArray &block );
/**
* The online status has changed
@@ -141,19 +141,19 @@ signals:
/**
* A error has occured. Handle the display of the message.
*/
- void errorMessage( int type, const QString &msg );
+ void errorMessage( int type, const TQString &msg );
protected:
/**
* Convenience method: escape spaces with '%20' for use in the protocol.
* Doesn't escape any other sequence.
*/
- QString escape( const QString &str );
+ TQString escape( const TQString &str );
/**
* And the other way round...
*/
- QString unescape( const QString &str );
+ TQString unescape( const TQString &str );
/**
* Set the online status. Emits onlineStatusChanged.
@@ -193,17 +193,17 @@ protected:
* This method is pure virtual and *must* be overridden in derived
* classes.
*/
- virtual void parseCommand( const QString &cmd, uint id,
- const QString &data ) = 0;
+ virtual void parseCommand( const TQString &cmd, uint id,
+ const TQString &data ) = 0;
/**
* Used in MSNFileTransferSocket
*/
- virtual void bytesReceived( const QByteArray & );
+ virtual void bytesReceived( const TQByteArray & );
bool accept( KNetwork::KServerSocket * );
- void sendBytes( const QByteArray &data );
+ void sendBytes( const TQByteArray &data );
- const QString &server() { return m_server; }
+ const TQString &server() { return m_server; }
uint port() { return m_port; }
/**
@@ -268,19 +268,19 @@ private:
* Queue of pending commands (should be mostly empty, but is needed to
* send more than one command to the server)
*/
- QValueList<QByteArray> m_sendQueue;
+ TQValueList<TQByteArray> m_sendQueue;
/**
* Parse a single line of data.
* Will call either parseCommand or handleError depending on the type of
* data received.
*/
- void parseLine( const QString &str );
+ void parseLine( const TQString &str );
KNetwork::KBufferedSocket *m_socket;
OnlineStatus m_onlineStatus;
- QString m_server;
+ TQString m_server;
uint m_port;
/**
@@ -294,7 +294,7 @@ private:
Buffer( unsigned size = 0 );
~Buffer();
void add( char *str, unsigned size );
- QByteArray take( unsigned size );
+ TQByteArray take( unsigned size );
};
Buffer m_buffer;
@@ -305,18 +305,18 @@ private:
* Makes a http request headers string using the specified, host, query, and content length.
* return: The string containing the http request headers.
*/
- QString makeHttpRequestString(const QString& host, const QString& query, uint contentLength);
+ TQString makeHttpRequestString(const TQString& host, const TQString& query, uint contentLength);
bool m_useHttp; // Indicates whether to use the msn http gateway to connect to the msn service.
bool m_bCanPoll; // Indicates whether polling of the http server is allowed.
bool m_bIsFirstInTransaction; // Indicates whether pending message to be sent is the first in the transaction.
// If so, the gateway is used.
// Use the gateway only for initial connected state; Otherwise, use the host.
- QString m_gateway; // Msn http gateway domain name.
- QString m_gwip; // The ip address of the msn gateway.
- QString m_sessionId; // session id.
- QTimer *m_timer; // Msn http poll timer.
- QString m_type; // Indicates the type of socket being used. NS or SB
+ TQString m_gateway; // Msn http gateway domain name.
+ TQString m_gwip; // The ip address of the msn gateway.
+ TQString m_sessionId; // session id.
+ TQTimer *m_timer; // Msn http poll timer.
+ TQString m_type; // Indicates the type of socket being used. NS or SB
bool m_pending; // Indicates whether a http response is pending.
int m_remaining; // Indicates how many bytes of content data remain
// to be received if the content bytes are sent in
@@ -328,7 +328,7 @@ private:
class WebResponse
{
public:
- WebResponse(const QByteArray& bytes);
+ WebResponse(const TQByteArray& bytes);
~WebResponse();
/**
@@ -338,7 +338,7 @@ private:
/**
* Gets the data stream used to read the body of the response from the server.
*/
- QDataStream* getResponseStream();
+ TQDataStream* getResponseStream();
/**
* Gets the status code of the response.
*/
@@ -346,13 +346,13 @@ private:
/**
* Gets the status description returned with the response.
*/
- QString getStatusDescription();
+ TQString getStatusDescription();
private:
MimeMessage *m_headers;
- QDataStream *m_stream;
+ TQDataStream *m_stream;
int m_statusCode;
- QString m_statusDescription;
+ TQString m_statusDescription;
};
//END