summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_runtime.cpp
blob: 45c1def4a246cc70ed40d71b2641842777f22a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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;
}