8#include <QLoggingCategory>
11#include "channel_export.h"
30 explicit CIceSignal(QObject *parent =
nullptr);
33 virtual int Open(
const QString& szServer, quint16 nPort,
34 const QString& user = QString(),
35 const QString& password = QString()) = 0;
37 virtual int Close() = 0;
38 virtual bool IsConnected() = 0;
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;
51 void sigDisconnected();
52 void sigError(
int nError,
const QString& szError);
60 const QString& toUser,
61 const QString& channelId,
72 const QString& toUser,
73 const QString& channelId,
84 const QString& toUser,
85 const QString& channelId,
90 QLoggingCategory m_Log;
The ICE signal interface class.
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