Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
IceSignal.h
1
2
3#ifndef CSIGNAL_H
4#define CSIGNAL_H
5
6#include <QObject>
7#include <string>
8#include <QLoggingCategory>
9
10#include "rtc/rtc.hpp"
11#include "channel_export.h"
12
25class CHANNEL_EXPORT CIceSignal : public QObject
26{
27 Q_OBJECT
28
29public:
30 explicit CIceSignal(QObject *parent = nullptr);
31 virtual ~CIceSignal();
32
33 virtual int Open(const QString& szServer, quint16 nPort,
34 const QString& user = QString(),
35 const QString& password = QString()) = 0;
36
37 virtual int Close() = 0;
38 virtual bool IsConnected() = 0;
39
40 virtual int SendDescription(const QString& toUser,
41 const QString& channelId,
42 const rtc::Description& description,
43 const QString& fromUser = QString()) = 0;
44 virtual int SendCandidate(const QString& toUser,
45 const QString& channelId,
46 const rtc::Candidate& candidate,
47 const QString& fromUser = QString()) = 0;
48
49Q_SIGNALS:
50 void sigConnected();
51 void sigDisconnected();
52 void sigError(int nError, const QString& szError);
53
59 void sigOffer(const QString& fromUser,
60 const QString& toUser,
61 const QString& channelId,
62 const QString& type,
63 const QString& sdp);
71 void sigCandidate(const QString& fromUser,
72 const QString& toUser,
73 const QString& channelId,
74 const QString& mid,
75 const QString& sdp);
83 void sigDescription(const QString& fromUser,
84 const QString& toUser,
85 const QString& channelId,
86 const QString& type,
87 const QString& sdp);
88
89protected:
90 QLoggingCategory m_Log;
91};
92
93#endif // CSIGNAL_H
The ICE signal interface class.
Definition IceSignal.h:26
void sigOffer(const QString &fromUser, const QString &toUser, const QString &channelId, const QString &type, const QString &sdp)
sigOffer
void sigDescription(const QString &fromUser, const QString &toUser, const QString &channelId, const QString &type, const QString &sdp)
sigDescription
void sigCandidate(const QString &fromUser, const QString &toUser, const QString &channelId, const QString &mid, const QString &sdp)
sigCandiate