Add server-side handling for channel level preference
This commit is contained in:
parent
30c4e006b6
commit
95f48eb17e
2 changed files with 10 additions and 0 deletions
|
@ -102,6 +102,10 @@ qRegisterMetaType<CHostAddress> ( "CHostAddress" );
|
||||||
QObject::connect( &Protocol,
|
QObject::connect( &Protocol,
|
||||||
SIGNAL ( LicenceRequired ( ELicenceType ) ),
|
SIGNAL ( LicenceRequired ( ELicenceType ) ),
|
||||||
SIGNAL ( LicenceRequired ( ELicenceType ) ) );
|
SIGNAL ( LicenceRequired ( ELicenceType ) ) );
|
||||||
|
|
||||||
|
QObject::connect ( &Protocol,
|
||||||
|
SIGNAL ( ReqChannelLevelList ( bool ) ),
|
||||||
|
this, SLOT ( OnReqChannelLevelList ( bool ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CChannel::ProtocolIsEnabled()
|
bool CChannel::ProtocolIsEnabled()
|
||||||
|
|
|
@ -166,6 +166,8 @@ public:
|
||||||
|
|
||||||
CNetworkTransportProps GetNetworkTransportPropsFromCurrentSettings();
|
CNetworkTransportProps GetNetworkTransportPropsFromCurrentSettings();
|
||||||
|
|
||||||
|
bool ChannelLevelsRequired() const { return bChannelLevelsRequired; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool ProtocolIsEnabled();
|
bool ProtocolIsEnabled();
|
||||||
|
|
||||||
|
@ -217,6 +219,8 @@ protected:
|
||||||
QMutex MutexSocketBuf;
|
QMutex MutexSocketBuf;
|
||||||
QMutex MutexConvBuf;
|
QMutex MutexConvBuf;
|
||||||
|
|
||||||
|
bool bChannelLevelsRequired;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void OnSendProtMessage ( CVector<uint8_t> vecMessage );
|
void OnSendProtMessage ( CVector<uint8_t> vecMessage );
|
||||||
void OnJittBufSizeChange ( int iNewJitBufSize );
|
void OnJittBufSizeChange ( int iNewJitBufSize );
|
||||||
|
@ -250,6 +254,8 @@ public slots:
|
||||||
|
|
||||||
void OnNewConnection() { emit NewConnection(); }
|
void OnNewConnection() { emit NewConnection(); }
|
||||||
|
|
||||||
|
void OnReqChannelLevelList ( bool bOptIn ) { bChannelLevelsRequired = bOptIn; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void MessReadyForSending ( CVector<uint8_t> vecMessage );
|
void MessReadyForSending ( CVector<uint8_t> vecMessage );
|
||||||
void NewConnection();
|
void NewConnection();
|
||||||
|
|
Loading…
Reference in a new issue