mirror of
https://github.com/danog/libtgvoip.git
synced 2024-11-27 04:34:42 +01:00
Added GetSignalBarsCount and GetConnectionState to CXWrapper
This commit is contained in:
parent
761c5869e9
commit
68acf590bc
@ -102,6 +102,14 @@ void VoIPControllerWrapper::SetEncryptionKey(const Platform::Array<uint8>^ key,
|
||||
controller->SetEncryptionKey((char*)key->Data, isOutgoing);
|
||||
}
|
||||
|
||||
int VoIPControllerWrapper::GetSignalBarsCount(){
|
||||
return controller->GetSignalBarsCount();
|
||||
}
|
||||
|
||||
CallState VoIPControllerWrapper::GetConnectionState(){
|
||||
return (CallState)controller->GetConnectionState();
|
||||
}
|
||||
|
||||
TrafficStats^ VoIPControllerWrapper::GetStats(){
|
||||
tgvoip::VoIPController::TrafficStats _stats;
|
||||
controller->GetStats(&_stats);
|
||||
|
@ -84,6 +84,8 @@ namespace libtgvoip{
|
||||
void SetEncryptionKey(const Platform::Array<uint8>^ key, bool isOutgoing);
|
||||
void SetConfig(double initTimeout, double recvTimeout, DataSavingMode dataSavingMode, bool enableAEC, bool enableNS, bool enableAGC, Platform::String^ logFilePath, Platform::String^ statsDumpFilePath);
|
||||
void SetProxy(ProxyProtocol protocol, Platform::String^ address, uint16_t port, Platform::String^ username, Platform::String^ password);
|
||||
int GetSignalBarsCount();
|
||||
CallState GetConnectionState();
|
||||
TrafficStats^ GetStats();
|
||||
Platform::String^ GetDebugString();
|
||||
Platform::String^ GetDebugLog();
|
||||
|
Loading…
Reference in New Issue
Block a user