LinphoneCoreFactory.cpp 1.62 KB
Newer Older
1
#include "LinphoneCoreFactory.h"
2
#include "LinphoneCore.h"
3
#include "LinphoneCoreListener.h"
4
#include "Server.h"
5

6
using namespace Linphone::Core;
7

8 9 10 11 12 13
void LinphoneCoreFactory::SetDebugMode(Platform::Boolean enable, Platform::String^ tag)
{
	std::lock_guard<std::recursive_mutex> lock(g_apiLock);
}

void LinphoneCoreFactory::CreateLinphoneCore(LinphoneCoreListener^ listener, Platform::String^ userConfig, Platform::String^ factoryConfig, Platform::Object^ userData)
14
{
15
	std::lock_guard<std::recursive_mutex> lock(g_apiLock); 
16
	this->linphoneCore = ref new Linphone::Core::LinphoneCore();
17
}
18

19 20 21
void LinphoneCoreFactory::CreateLinphoneCore(LinphoneCoreListener^ listener)
{
	std::lock_guard<std::recursive_mutex> lock(g_apiLock); 
22
	this->linphoneCore = ref new Linphone::Core::LinphoneCore();
23 24
}

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
LinphoneAuthInfo^ LinphoneCoreFactory::CreateAuthInfo(Platform::String^ username, Platform::String^ password, Platform::String^ realm)
{
	std::lock_guard<std::recursive_mutex> lock(g_apiLock); 
	return nullptr;
}

LinphoneAddress^ LinphoneCoreFactory::CreateLinphoneAddress(Platform::String^ username, Platform::String^ domain, Platform::String^ displayName)
{
	std::lock_guard<std::recursive_mutex> lock(g_apiLock); 
	return nullptr;
}

LinphoneAddress^ LinphoneCoreFactory::CreateLinphoneAddress(Platform::String^ address)
{
	std::lock_guard<std::recursive_mutex> lock(g_apiLock); 
	return nullptr;
}

43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
LinphoneCore^ LinphoneCoreFactory::LinphoneCore::get()
{
	return this->linphoneCore;
}

LinphoneCoreFactory::LinphoneCoreFactory() :
	linphoneCore(nullptr)
{

}

LinphoneCoreFactory::~LinphoneCoreFactory()
{

}