Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
IceSignalQxmpp.h
1
2
3#ifndef CICESIGNALQXMPP_H
4#define CICESIGNALQXMPP_H
5
6#include "IceSignal.h"
7#include "QXmppClient.h"
8#include "IceSignalQXmppManager.h"
9
23{
24 Q_OBJECT
25
26public:
27 explicit CIceSignalQxmpp(QObject *parent = nullptr);
28
29 virtual int Open(const QString &szServer,
30 quint16 nPort,
31 const QString &user = QString(),
32 const QString &password = QString()) override;
33 virtual int Close() override;
34 virtual bool IsConnected() override;
35 virtual int SendDescription(const QString &toUser,
36 const QString &channelId,
37 const rtc::Description &description,
38 const QString &fromUser) override;
39 virtual int SendCandidate(const QString &toUser,
40 const QString &channelId,
41 const rtc::Candidate &candidate,
42 const QString &fromUser) override;
43
44 bool proecssIq(CIceSignalQXmppIq iq);
45
46private Q_SLOTS:
47 void slotError(QXmppClient::Error e);
48 void slotSendPackage(CIceSignalQXmppIq iq);
49
50Q_SIGNALS:
51 void sigSendPackage(CIceSignalQXmppIq iq);
52
53private:
54 QXmppClient m_Client;
55 CIceSignalQXmppManager m_Manager;
56};
57
58#endif // CICESIGNALQXMPP_H
QXMPP implements ICE signaling class.
The ICE signal interface class.
Definition IceSignal.h:26