summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_runtime.cpp
blob: eb0bf0ccfd19aa74c3c00c6741af5153e2176065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "skype_proto.h"

void CSkypeProto::InitSkype()
{
	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;
}