summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/libiris/cutestuff/network/socks.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/libiris/cutestuff/network/socks.h')
-rw-r--r--kopete/protocols/jabber/libiris/cutestuff/network/socks.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kopete/protocols/jabber/libiris/cutestuff/network/socks.h b/kopete/protocols/jabber/libiris/cutestuff/network/socks.h
index b10361dd..507caf5f 100644
--- a/kopete/protocols/jabber/libiris/cutestuff/network/socks.h
+++ b/kopete/protocols/jabber/libiris/cutestuff/network/socks.h
@@ -35,11 +35,11 @@ class SocksUDP : public QObject
public:
~SocksUDP();
- void change(const QString &host, int port);
- void write(const QByteArray &data);
+ void change(const TQString &host, int port);
+ void write(const TQByteArray &data);
signals:
- void packetReady(const QByteArray &data);
+ void packetReady(const TQByteArray &data);
private slots:
void sn_activated(int);
@@ -49,7 +49,7 @@ private:
Private *d;
friend class SocksClient;
- SocksUDP(SocksClient *sc, const QString &host, int port, const QHostAddress &routeAddr, int routePort);
+ SocksUDP(SocksClient *sc, const TQString &host, int port, const TQHostAddress &routeAddr, int routePort);
};
class SocksClient : public ByteStream
@@ -59,39 +59,39 @@ public:
enum Error { ErrConnectionRefused = ErrCustom, ErrHostNotFound, ErrProxyConnect, ErrProxyNeg, ErrProxyAuth };
enum Method { AuthNone=0x0001, AuthUsername=0x0002 };
enum Request { ReqConnect, ReqUDPAssociate };
- SocksClient(QObject *parent=0);
- SocksClient(int, QObject *parent=0);
+ SocksClient(TQObject *parent=0);
+ SocksClient(int, TQObject *parent=0);
~SocksClient();
bool isIncoming() const;
// outgoing
- void setAuth(const QString &user, const QString &pass="");
- void connectToHost(const QString &proxyHost, int proxyPort, const QString &host, int port, bool udpMode=false);
+ void setAuth(const TQString &user, const TQString &pass="");
+ void connectToHost(const TQString &proxyHost, int proxyPort, const TQString &host, int port, bool udpMode=false);
// incoming
void chooseMethod(int);
void authGrant(bool);
void requestDeny();
void grantConnect();
- void grantUDPAssociate(const QString &relayHost, int relayPort);
+ void grantUDPAssociate(const TQString &relayHost, int relayPort);
// from ByteStream
bool isOpen() const;
void close();
- void write(const QByteArray &);
- QByteArray read(int bytes=0);
+ void write(const TQByteArray &);
+ TQByteArray read(int bytes=0);
int bytesAvailable() const;
int bytesToWrite() const;
// remote address
- QHostAddress peerAddress() const;
+ TQHostAddress peerAddress() const;
Q_UINT16 peerPort() const;
// udp
- QString udpAddress() const;
+ TQString udpAddress() const;
Q_UINT16 udpPort() const;
- SocksUDP *createUDP(const QString &host, int port, const QHostAddress &routeAddr, int routePort);
+ SocksUDP *createUDP(const TQString &host, int port, const TQHostAddress &routeAddr, int routePort);
signals:
// outgoing
@@ -99,8 +99,8 @@ signals:
// incoming
void incomingMethods(int);
- void incomingAuth(const QString &user, const QString &pass);
- void incomingConnectRequest(const QString &host, int port);
+ void incomingAuth(const TQString &user, const TQString &pass);
+ void incomingConnectRequest(const TQString &host, int port);
void incomingUDPAssociateRequest();
private slots:
@@ -119,31 +119,31 @@ private:
void init();
void reset(bool clear=false);
void do_request();
- void processOutgoing(const QByteArray &);
- void processIncoming(const QByteArray &);
+ void processOutgoing(const TQByteArray &);
+ void processIncoming(const TQByteArray &);
void continueIncoming();
- void writeData(const QByteArray &a);
+ void writeData(const TQByteArray &a);
};
class SocksServer : public QObject
{
Q_OBJECT
public:
- SocksServer(QObject *parent=0);
+ SocksServer(TQObject *parent=0);
~SocksServer();
bool isActive() const;
bool listen(Q_UINT16 port, bool udp=false);
void stop();
int port() const;
- QHostAddress address() const;
+ TQHostAddress address() const;
SocksClient *takeIncoming();
- void writeUDP(const QHostAddress &addr, int port, const QByteArray &data);
+ void writeUDP(const TQHostAddress &addr, int port, const TQByteArray &data);
signals:
void incomingReady();
- void incomingUDP(const QString &host, int port, const QHostAddress &addr, int sourcePort, const QByteArray &data);
+ void incomingUDP(const TQString &host, int port, const TQHostAddress &addr, int sourcePort, const TQByteArray &data);
private slots:
void connectionReady(int);