The ICE channel interface class.
More...
#include <ChannelIce.h>
|
| CChannelIce (CIceSignal *pSignal, QObject *parent=nullptr) |
|
int | SetConfigure (const rtc::Configuration &config) |
|
virtual bool | open (const QString &user, const QString &peer, bool bChannelId) |
| Open channel. for activating calls.
|
|
virtual bool | open (const QString &fromUser, const QString &toUser, const QString &channelId, const QString &type, const QString &sdp) |
| Open channel. For passive receivers.
|
|
virtual void | close () |
|
QString | GetUser () |
|
QString | GetPeerUser () |
|
QString | GetChannelId () |
|
| CChannel (QTcpSocket *pSocket, QObject *parent=nullptr) |
| CChannel.
|
|
virtual bool | open (OpenMode mode) override |
|
virtual QString | GetDetails () |
|
|
void | sigConnected () |
| emit when the channel is connected.
|
|
void | sigDisconnected () |
| emit when the channel is disconnected
|
|
void | sigError (int nErr, const QString &szErr) |
| emit when the channel is error
|
|
static int | InitTranslation () |
|
static int | RemoveTranslation () |
|
The ICE channel interface class.
- Author
- Kang Lin kl222.nosp@m.@126.nosp@m..com
This class implements a ICE channel.
- See also
- CIceSignal
Definition at line 26 of file ChannelIce.h.
◆ CChannelIce() [1/2]
CChannelIce::CChannelIce |
( |
CIceSignal * |
pSignal, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ ~CChannelIce()
CChannelIce::~CChannelIce |
( |
| ) |
|
|
virtual |
◆ CChannelIce() [2/2]
CChannelIce::CChannelIce |
( |
QObject * |
parent = nullptr | ) |
|
|
private |
◆ close()
void CChannelIce::close |
( |
| ) |
|
|
virtual |
◆ CreateDataChannel()
int CChannelIce::CreateDataChannel |
( |
bool |
bDataChannel | ) |
|
|
privatevirtual |
◆ GenerateID()
QString CChannelIce::GenerateID |
( |
const QString & |
label = QString() | ) |
|
|
private |
◆ GetChannelId()
QString CChannelIce::GetChannelId |
( |
| ) |
|
◆ GetPeerUser()
QString CChannelIce::GetPeerUser |
( |
| ) |
|
◆ GetUser()
QString CChannelIce::GetUser |
( |
| ) |
|
◆ isSequential()
bool CChannelIce::isSequential |
( |
| ) |
const |
|
protectedvirtual |
◆ open() [1/2]
bool CChannelIce::open |
( |
const QString & |
fromUser, |
|
|
const QString & |
toUser, |
|
|
const QString & |
channelId, |
|
|
const QString & |
type, |
|
|
const QString & |
sdp |
|
) |
| |
|
virtual |
Open channel. For passive receivers.
- Note
- Called by service. Must call SetConfigure set the service properties before calling it.
Definition at line 267 of file ChannelIce.cpp.
◆ open() [2/2]
bool CChannelIce::open |
( |
const QString & |
user, |
|
|
const QString & |
peer, |
|
|
bool |
bChannelId |
|
) |
| |
|
virtual |
Open channel. for activating calls.
- Returns
- true: open data channel false: don't open data channel
- Note
- Called by client. Must call SetConfigure set the service properties before calling it.
Definition at line 255 of file ChannelIce.cpp.
◆ readData()
qint64 CChannelIce::readData |
( |
char * |
data, |
|
|
qint64 |
maxlen |
|
) |
| |
|
protectedvirtual |
◆ SetConfigure()
int CChannelIce::SetConfigure |
( |
const rtc::Configuration & |
config | ) |
|
- Note
- These properties must be set before calling Open
Definition at line 126 of file ChannelIce.cpp.
◆ SetDataChannel()
int CChannelIce::SetDataChannel |
( |
std::shared_ptr< rtc::DataChannel > |
dc | ) |
|
|
privatevirtual |
◆ SetSignal()
◆ slotSignalConnected
void CChannelIce::slotSignalConnected |
( |
| ) |
|
|
privatevirtualslot |
◆ slotSignalDisconnected
void CChannelIce::slotSignalDisconnected |
( |
| ) |
|
|
privatevirtualslot |
◆ slotSignalError
void CChannelIce::slotSignalError |
( |
int |
error, |
|
|
const QString & |
szError |
|
) |
| |
|
privatevirtualslot |
◆ slotSignalReceiverCandidate
void CChannelIce::slotSignalReceiverCandidate |
( |
const QString & |
fromUser, |
|
|
const QString & |
toUser, |
|
|
const QString & |
channelId, |
|
|
const QString & |
mid, |
|
|
const QString & |
sdp |
|
) |
| |
|
privatevirtualslot |
◆ slotSignalReceiverDescription
void CChannelIce::slotSignalReceiverDescription |
( |
const QString & |
fromUser, |
|
|
const QString & |
toUser, |
|
|
const QString & |
channelId, |
|
|
const QString & |
type, |
|
|
const QString & |
sdp |
|
) |
| |
|
privatevirtualslot |
◆ writeData()
qint64 CChannelIce::writeData |
( |
const char * |
data, |
|
|
qint64 |
len |
|
) |
| |
|
protectedvirtual |
◆ m_Config
rtc::Configuration CChannelIce::m_Config |
|
private |
◆ m_data
QByteArray CChannelIce::m_data |
|
private |
◆ m_dataChannel
std::shared_ptr<rtc::DataChannel> CChannelIce::m_dataChannel |
|
private |
◆ m_Log
QLoggingCategory CChannelIce::m_Log |
|
private |
◆ m_MutexData
QMutex CChannelIce::m_MutexData |
|
private |
◆ m_peerConnection
std::shared_ptr<rtc::PeerConnection> CChannelIce::m_peerConnection |
|
private |
◆ m_pSignal
◆ m_szChannelId
QString CChannelIce::m_szChannelId |
|
private |
◆ m_szPeerUser
QString CChannelIce::m_szPeerUser |
|
private |
◆ m_szUser
QString CChannelIce::m_szUser |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Channel/ICE/ChannelIce.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Channel/ICE/ChannelIce.cpp