#include "skype_proto.h"

void CSkypeProto::InitSkype()
{
	int port = 8963;

	wchar_t *profileName = ::Utils_ReplaceVarsT(L"%miranda_profilename%");
	wchar_t *dbPath = ::Utils_ReplaceVarsT(L"%miranda_userdata%\\SkypeKit\\");	

	this->skype = CSkype::GetInstance(g_hInstance, profileName, dbPath);
	this->skype->SetOnMessageCallback((CSkype::OnMessaged)&CSkypeProto::OnMessage, this);
}

void CSkypeProto::UninitSkype()
{
	this->skype->stop();
	delete this->skype;
}