diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-09-03 16:34:36 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-09-03 16:34:36 +0200 |
| commit | cb16b3abb805c02c103237155e2ee624325f5dd6 (patch) | |
| tree | 4e52159289e6048f07b5d079ef2eaa70e2e2f73e /src/base/QXmppStun.h | |
| parent | aa3e0a2d41f25b05aef08df3d8b8cf698e9045c8 (diff) | |
| parent | a159e4c4afc62628ec5b753829e1a023b6ae5dea (diff) | |
| download | qxmpp-cb16b3abb805c02c103237155e2ee624325f5dd6.tar.gz | |
Merge branch 'master' of github.com:qxmpp-project/qxmpp
Diffstat (limited to 'src/base/QXmppStun.h')
| -rw-r--r-- | src/base/QXmppStun.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/base/QXmppStun.h b/src/base/QXmppStun.h index cc8b01c1..bd0868c0 100644 --- a/src/base/QXmppStun.h +++ b/src/base/QXmppStun.h @@ -186,6 +186,7 @@ private slots: void handleDatagram(const QByteArray &datagram, const QHostAddress &host, quint16 port); void turnConnected(); void transactionFinished(); + void updateGatheringState(); void writeStun(const QXmppStunMessage &request); signals: @@ -195,6 +196,9 @@ signals: /// \brief This signal is emitted when a data packet is received. void datagramReceived(const QByteArray &datagram); + /// \internal This signal is emitted when the gathering state of local candidates changes. + void gatheringStateChanged(); + /// \brief This signal is emitted when the list of local candidates changes. void localCandidatesChanged(); @@ -237,8 +241,17 @@ private: class QXMPP_EXPORT QXmppIceConnection : public QXmppLoggable { Q_OBJECT + Q_ENUMS(GatheringState) + Q_PROPERTY(QXmppIceConnection::GatheringState gatheringState READ gatheringState NOTIFY gatheringStateChanged) public: + enum GatheringState + { + NewGatheringState, + BusyGatheringState, + CompleteGatheringState + }; + QXmppIceConnection(QObject *parent = 0); ~QXmppIceConnection(); @@ -262,6 +275,8 @@ public: bool bind(const QList<QHostAddress> &addresses); bool isConnected() const; + GatheringState gatheringState() const; + signals: /// \brief This signal is emitted once ICE negotiation succeeds. void connected(); @@ -269,6 +284,9 @@ signals: /// \brief This signal is emitted when ICE negotiation fails. void disconnected(); + /// \brief This signal is emitted when the gathering state of local candidates changes. + void gatheringStateChanged(); + /// \brief This signal is emitted when the list of local candidates changes. void localCandidatesChanged(); @@ -278,6 +296,7 @@ public slots: private slots: void slotConnected(); + void slotGatheringStateChanged(); void slotTimeout(); private: |
