diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-18 10:37:31 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-18 10:37:31 +0000 |
| commit | 4f5e71e25599c10f439f92b825ff0a247ed8ba7b (patch) | |
| tree | 640c0903a32048ca59315353e821723b925c03ad /source/QXmppStun.h | |
| parent | 21bd23f418219c1a4649b0efe7cfb848a31b2922 (diff) | |
| download | qxmpp-4f5e71e25599c10f439f92b825ff0a247ed8ba7b.tar.gz | |
rework QXmppStun API to make it more socket-like
Diffstat (limited to 'source/QXmppStun.h')
| -rw-r--r-- | source/QXmppStun.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/QXmppStun.h b/source/QXmppStun.h index 507723f7..94b179f0 100644 --- a/source/QXmppStun.h +++ b/source/QXmppStun.h @@ -60,7 +60,7 @@ public: void close(); void connectToHost(); - QIODevice::OpenMode openMode() const; + bool isConnected() const; qint64 writeDatagram(const QByteArray &datagram); private slots: @@ -68,14 +68,15 @@ private slots: void readyRead(); signals: + // This signal is emitted once ICE negotiation succeeds. + void connected(); + // This signal is emitted when a data packet is received. - void datagramReceived(const QByteArray &datagram, const QHostAddress &host, quint16 port); + void datagramReceived(const QByteArray &datagram); /// This signal is emitted to send logging messages. void logMessage(QXmppLogger::MessageType type, const QString &msg); - void ready(); - private: class Pair { public: |
