Commit cafc6964 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

More API stubs done

parent 0784a517
......@@ -125,11 +125,13 @@ popd</Command>
<ItemGroup>
<ClInclude Include="ApiLock.h" />
<ClInclude Include="CallController.h" />
<ClInclude Include="CallDirection.h" />
<ClInclude Include="Globals.h" />
<ClInclude Include="LinphoneAddress.h" />
<ClInclude Include="LinphoneCall.h" />
<ClInclude Include="LinphoneCallLog.h" />
<ClInclude Include="LinphoneCallParams.h" />
<ClInclude Include="LinphoneCallStats.h" />
<ClInclude Include="LinphoneCoreFactory.h" />
<ClInclude Include="LinphoneAuthInfo.h" />
<ClInclude Include="LinphoneCore.h" />
......@@ -143,12 +145,14 @@ popd</Command>
<ItemGroup>
<ClCompile Include="ApiLock.cpp" />
<ClCompile Include="CallController.cpp" />
<ClCompile Include="CallDirection.cpp" />
<ClCompile Include="Globals.cpp" />
<ClCompile Include="LinphoneAddress.cpp" />
<ClCompile Include="LinphoneAuthInfo.cpp" />
<ClCompile Include="LinphoneCall.cpp" />
<ClCompile Include="LinphoneCallLog.cpp" />
<ClCompile Include="LinphoneCallParams.cpp" />
<ClCompile Include="LinphoneCallStats.cpp" />
<ClCompile Include="LinphoneCore.cpp" />
<ClCompile Include="LinphoneCoreFactory.cpp" />
<ClCompile Include="LinphoneProxyConfig.cpp" />
......
#include "CallDirection.h"
#include "Server.h"
using namespace Linphone::BackEnd;
\ No newline at end of file
#pragma once
namespace Linphone
{
namespace BackEnd
{
public ref class CallDirection sealed
{
};
}
}
\ No newline at end of file
#include "LinphoneAddress.h"
#include "Server.h"
using namespace Linphone::BackEnd;
\ No newline at end of file
using namespace Linphone::BackEnd;
Platform::String^ LinphoneAddress::GetDisplayName()
{
return nullptr;
}
Platform::String^ LinphoneAddress::GetUserName()
{
return nullptr;
}
Platform::String^ LinphoneAddress::GetDomain()
{
return nullptr;
}
int LinphoneAddress::GetPort()
{
return -1;
}
void LinphoneAddress::SetDisplayName(Platform::String^ name)
{
}
void LinphoneAddress::SetUserName(Platform::String^ username)
{
}
void LinphoneAddress::SetDomain(Platform::String^ domain)
{
}
void LinphoneAddress::SetPort(int port)
{
}
void LinphoneAddress::Clean()
{
}
Platform::String^ LinphoneAddress::AsString()
{
return nullptr;
}
Platform::String^ LinphoneAddress::AsStringUriOnly()
{
return nullptr;
}
Platform::String^ LinphoneAddress::ToString()
{
return nullptr;
}
......@@ -6,6 +6,21 @@ namespace Linphone
{
public ref class LinphoneAddress sealed
{
public:
Platform::String^ GetDisplayName();
Platform::String^ GetUserName();
Platform::String^ GetDomain();
int GetPort();
void SetDisplayName(Platform::String^ name);
void SetUserName(Platform::String^ username);
void SetDomain(Platform::String^ domain);
void SetPort(int port);
void Clean();
Platform::String^ AsString();
Platform::String^ AsStringUriOnly();
Platform::String^ ToString();
};
}
}
\ No newline at end of file
#include "LinphoneAuthInfo.h"
#include "Server.h"
using namespace Linphone::BackEnd;
\ No newline at end of file
using namespace Linphone::BackEnd;
Platform::String^ LinphoneAuthInfo::GetUsername()
{
return nullptr;
}
void LinphoneAuthInfo::SetUsername(Platform::String^ username)
{
}
Platform::String^ LinphoneAuthInfo::GetPassword()
{
return nullptr;
}
void LinphoneAuthInfo::SetPassword(Platform::String^ password)
{
}
Platform::String^ LinphoneAuthInfo::GetRealm()
{
return nullptr;
}
void LinphoneAuthInfo::SetRealm(Platform::String^ realm)
{
}
......@@ -6,6 +6,13 @@ namespace Linphone
{
public ref class LinphoneAuthInfo sealed
{
public:
Platform::String^ GetUsername();
void SetUsername(Platform::String^ username);
Platform::String^ GetPassword();
void SetPassword(Platform::String^ password);
Platform::String^ GetRealm();
void SetRealm(Platform::String^ realm);
};
}
}
\ No newline at end of file
#include "LinphoneCall.h"
#include "CallDirection.h"
#include "LinphoneAddress.h"
#include "LinphoneCallStats.h"
#include "LinphoneCallLog.h"
#include "LinphoneCallParams.h"
#include "Server.h"
using namespace Linphone::BackEnd;
\ No newline at end of file
using namespace Linphone::BackEnd;
LinphoneCallState^ LinphoneCall::GetState()
{
return nullptr;
}
LinphoneAddress^ LinphoneCall::GetRemoteAddress()
{
return nullptr;
}
CallDirection^ LinphoneCall::GetDirection()
{
return nullptr;
}
LinphoneCallLog^ LinphoneCall::GetCallLog()
{
return nullptr;
}
LinphoneCallStats^ LinphoneCall::GetAudioStats()
{
return nullptr;
}
LinphoneCallParams^ LinphoneCall::GetRemoteParams()
{
return nullptr;
}
LinphoneCallParams^ LinphoneCall::GetCurrentParamsCopy()
{
return nullptr;
}
void LinphoneCall::EnableEchoCancellation(Platform::Boolean enable)
{
}
Platform::Boolean LinphoneCall::IsEchoCancellationEnabled()
{
return false;
}
void LinphoneCall::EnableEchoLimiter(Platform::Boolean enable)
{
}
Platform::Boolean LinphoneCall::IsEchoLimiterEnabled()
{
return false;
}
int LinphoneCall::GetDuraction()
{
return -1;
}
float LinphoneCall::GetCurrentQuality()
{
return -1;
}
float LinphoneCall::GetAverageQuality()
{
return -1;
}
Platform::String^ LinphoneCall::GetAuthenticationToken()
{
return nullptr;
}
Platform::Boolean LinphoneCall::IsAuthenticationTokenVerified()
{
return false;
}
void LinphoneCall::SetAuthenticationTokenVerified(Platform::Boolean verified)
{
}
Platform::Boolean LinphoneCall::IsInConference()
{
return false;
}
float LinphoneCall::GetPlayVolume()
{
return -1;
}
Platform::String^ LinphoneCall::GetRemoteUserAgent()
{
return nullptr;
}
Platform::String^ LinphoneCall::GetRemoteContact()
{
return nullptr;
}
......@@ -4,8 +4,43 @@ namespace Linphone
{
namespace BackEnd
{
ref class LinphoneAddress;
ref class CallDirection;
ref class LinphoneCallLog;
ref class LinphoneCallStats;
ref class LinphoneCallParams;
public ref class LinphoneCallState sealed
{
};
public ref class LinphoneCall sealed
{
public:
LinphoneCallState^ GetState();
LinphoneAddress^ GetRemoteAddress();
CallDirection^ GetDirection();
LinphoneCallLog^ GetCallLog();
LinphoneCallStats^ GetAudioStats();
LinphoneCallParams^ GetRemoteParams();
LinphoneCallParams^ GetCurrentParamsCopy();
void EnableEchoCancellation(Platform::Boolean enable);
Platform::Boolean IsEchoCancellationEnabled();
void EnableEchoLimiter(Platform::Boolean enable);
Platform::Boolean IsEchoLimiterEnabled();
int GetDuraction();
float GetCurrentQuality();
float GetAverageQuality();
Platform::String^ GetAuthenticationToken();
Platform::Boolean IsAuthenticationTokenVerified();
void SetAuthenticationTokenVerified(Platform::Boolean verified);
Platform::Boolean IsInConference();
float GetPlayVolume();
Platform::String^ GetRemoteUserAgent();
Platform::String^ GetRemoteContact();
};
}
}
\ No newline at end of file
#include "LinphoneCallLog.h"
#include "LinphoneAddress.h"
#include "CallDirection.h"
#include "Server.h"
using namespace Linphone::BackEnd;
\ No newline at end of file
using namespace Linphone::BackEnd;
LinphoneAddress^ LinphoneCallLog::GetFrom()
{
return nullptr;
}
LinphoneAddress^ LinphoneCallLog::GetTo()
{
return nullptr;
}
CallDirection^ LinphoneCallLog::GetDirection()
{
return nullptr;
}
LinphoneCallStatus^ LinphoneCallLog::GetStatus()
{
return nullptr;
}
Platform::String^ LinphoneCallLog::GetStartDate()
{
return nullptr;
}
int64 LinphoneCallLog::GetTimestamp()
{
return -1;
}
int LinphoneCallLog::GetCallDuration()
{
return -1;
}
int LinphoneCallLog::GetCallId()
{
return -1;
}
......@@ -4,8 +4,25 @@ namespace Linphone
{
namespace BackEnd
{
ref class LinphoneAddress;
ref class CallDirection;
public ref class LinphoneCallStatus sealed
{
};
public ref class LinphoneCallLog sealed
{
public:
LinphoneAddress^ GetFrom();
LinphoneAddress^ GetTo();
CallDirection^ GetDirection();
LinphoneCallStatus^ GetStatus();
Platform::String^ GetStartDate();
int64 GetTimestamp();
int GetCallDuration();
int GetCallId();
};
}
}
\ No newline at end of file
#include "LinphoneCallParams.h"
#include "LinphoneCore.h"
#include "PayloadType.h"
#include "Server.h"
using namespace Linphone::BackEnd;
\ No newline at end of file
using namespace Linphone::BackEnd;
void LinphoneCallParams::SetAudioBandwidth()
{
}
MediaEncryption^ LinphoneCallParams::GetMediaEncryption()
{
return nullptr;
}
void LinphoneCallParams::SetMediaEncryption(MediaEncryption^ menc)
{
}
PayloadType^ LinphoneCallParams::GetUsedAudioCodec()
{
return nullptr;
}
void LinphoneCallParams::EnableLowBandwidth(Platform::Boolean enable)
{
}
Platform::Boolean LinphoneCallParams::IsLowBandwidthEnabled()
{
return false;
}
......@@ -4,8 +4,18 @@ namespace Linphone
{
namespace BackEnd
{
ref class MediaEncryption;
ref class PayloadType;
public ref class LinphoneCallParams sealed
{
public:
void SetAudioBandwidth();
MediaEncryption^ GetMediaEncryption();
void SetMediaEncryption(MediaEncryption^ menc);
PayloadType^ GetUsedAudioCodec();
void EnableLowBandwidth(Platform::Boolean enable);
Platform::Boolean IsLowBandwidthEnabled();
};
}
}
\ No newline at end of file
#include "LinphoneCallStats.h"
#include "Server.h"
using namespace Linphone::BackEnd;
MediaType^ LinphoneCallStats::GetMediaType()
{
return nullptr;
}
IceState^ LinphoneCallStats::GetIceState()
{
return nullptr;
}
float LinphoneCallStats::GetDownloadBandwidth()
{
return -1;
}
float LinphoneCallStats::GetUploadBandwidth()
{
return -1;
}
float LinphoneCallStats::GetSenderLossRate()
{
return -1;
}
float LinphoneCallStats::GetReceiverLossRate()
{
return -1;
}
float LinphoneCallStats::GetSenderInterarrivalJitter()
{
return -1;
}
float LinphoneCallStats::GetReceiverInterarrivalJitter()
{
return -1;
}
float LinphoneCallStats::GetRoundTripDelay()
{
return -1;
}
int64 LinphoneCallStats::GetLatePacketsCumulativeNumber()
{
return -1;
}
float LinphoneCallStats::GetJitterBufferSize()
{
return -1;
}
#pragma once
namespace Linphone
{
namespace BackEnd
{
public ref class MediaType sealed
{
};
public ref class IceState sealed
{
};
public ref class LinphoneCallStats sealed
{
public:
MediaType^ GetMediaType();
IceState^ GetIceState();
float GetDownloadBandwidth();
float GetUploadBandwidth();
float GetSenderLossRate();
float GetReceiverLossRate();
float GetSenderInterarrivalJitter();
float GetReceiverInterarrivalJitter();
float GetRoundTripDelay();
int64 GetLatePacketsCumulativeNumber();
float GetJitterBufferSize();
};
}
}
\ No newline at end of file
......@@ -15,6 +15,10 @@ namespace Linphone
ref class OnlineStatus;
ref class LpConfig;
public ref class RegistrationState sealed
{
};
public ref class MediaEncryption sealed
{
};
......
#include "LinphoneProxyConfig.h"
#include "LinphoneCore.h"
#include "Server.h"
using namespace Linphone::BackEnd;
\ No newline at end of file
using namespace Linphone::BackEnd;
void LinphoneProxyConfig::Edit()
{
}
void LinphoneProxyConfig::Done()
{
}
void LinphoneProxyConfig::SetIdentity(Platform::String^ identity)
{
}
Platform::String^ LinphoneProxyConfig::GetIdentity()
{
return nullptr;
}
void LinphoneProxyConfig::SetProxy(Platform::String^ proxyUri)
{
}
void LinphoneProxyConfig::EnableRegister(Platform::Boolean enable)
{
}
Platform::Boolean LinphoneProxyConfig::IsRegisterEnabled()
{
return false;
}
Platform::String^ LinphoneProxyConfig::NormalizePhoneNumber(Platform::String^ phoneNumber)
{
return nullptr;
}
void LinphoneProxyConfig::SetDialPrefix(Platform::String^ prefix)
{
}
void LinphoneProxyConfig::SetDialEscapePlus(Platform::Boolean value)
{
}
Platform::String^ LinphoneProxyConfig::GetDomain()
{
return nullptr;
}
Platform::Boolean LinphoneProxyConfig::IsRegistered()
{
return false;
}
void LinphoneProxyConfig::SetRoute(Platform::String^ routeUri)
{
}
Platform::String^ LinphoneProxyConfig::GetRoute()
{
return nullptr;
}
void LinphoneProxyConfig::EnablePublish(Platform::Boolean enable)
{
}
Platform::Boolean LinphoneProxyConfig::IsPublishEnabled()
{
return false;
}
RegistrationState^ LinphoneProxyConfig::GetState()
{
return nullptr;
}
void LinphoneProxyConfig::SetExpires(int delay)
{
}
void LinphoneProxyConfig::SetContactParameters(Platform::String^ params)
{
}
int LinphoneProxyConfig::LookupCCCFromIso(Platform::String^ iso)
{
return -1;
}
int LinphoneProxyConfig::LookupCCCFromE164(Platform::String^ e164)
{
return -1;
}
......@@ -4,8 +4,32 @@ namespace Linphone
{
namespace BackEnd
{
ref class RegistrationState;
public ref class LinphoneProxyConfig sealed
{
public:
void Edit();
void Done();
void SetIdentity(Platform::String^ identity);
Platform::String^ GetIdentity();
void SetProxy(Platform::String^ proxyUri);
void EnableRegister(Platform::Boolean enable);
Platform::Boolean IsRegisterEnabled();
Platform::String^ NormalizePhoneNumber(Platform::String^ phoneNumber);
void SetDialPrefix(Platform::String^ prefix);
void SetDialEscapePlus(Platform::Boolean value);
Platform::String^ GetDomain();
Platform::Boolean IsRegistered();
void SetRoute(Platform::String^ routeUri);
Platform::String^ GetRoute();
void EnablePublish(Platform::Boolean enable);
Platform::Boolean IsPublishEnabled();
RegistrationState^ GetState();
void SetExpires(int delay);
void SetContactParameters(Platform::String^ params);
int LookupCCCFromIso(Platform::String^ iso);
int LookupCCCFromE164(Platform::String^ e164);
};
}
}
\ No newline at end of file
#include "LpConfig.h"
#include "Server.h"
using namespace Linphone::BackEnd;
\ No newline at end of file
using namespace Linphone::BackEnd;
void LpConfig::SetInt(Platform::String^ section, Platform::String^ key, int value)
{
}
\ No newline at end of file
......@@ -6,6 +6,8 @@ namespace Linphone
{
public ref class LpConfig sealed
{
public:
void SetInt(Platform::String^ section, Platform::String^ key, int value);
};
}
}
\ No newline at end of file