diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-05 16:00:32 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-05 16:00:32 +0000 |
| commit | be9351b7e17e0f8b19386f74441c127c1b589d29 (patch) | |
| tree | e41b2fa3e3b8f8872f826710e7f46dce731b64de /source/QXmppSocks.h | |
| parent | 5dd224f861b108fe967f8dfd6b467c3a91bedae0 (diff) | |
| download | qxmpp-be9351b7e17e0f8b19386f74441c127c1b589d29.tar.gz | |
make QXmppSocksClient inherit QTcpSocket
Diffstat (limited to 'source/QXmppSocks.h')
| -rw-r--r-- | source/QXmppSocks.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/source/QXmppSocks.h b/source/QXmppSocks.h index 21d3be2d..7dedf77d 100644 --- a/source/QXmppSocks.h +++ b/source/QXmppSocks.h @@ -25,30 +25,21 @@ #define QXMPPSOCKS_H #include <QHostAddress> -#include <QObject> +#include <QTcpSocket> class QTcpServer; -class QTcpSocket; -class QXmppSocksClient : public QObject +class QXmppSocksClient : public QTcpSocket { Q_OBJECT public: QXmppSocksClient(const QHostAddress &proxyAddress, quint16 proxyPort, QObject *parent=0); - void close(); void connectToHost(const QString &hostName, quint16 hostPort); - QString errorString() const; - QByteArray readAll(); - bool waitForConnected(int msecs = 30000); - qint64 write(const QByteArray &data); - - QTcpSocket *socket(); + bool waitForReady(int msecs = 30000); signals: - void connected(); - void disconnected(); - void readyRead(); + void ready(); private slots: void slotConnected(); @@ -59,7 +50,6 @@ private: quint16 m_proxyPort; QString m_hostName; quint16 m_hostPort; - QTcpSocket *m_socket; int m_step; }; |
