summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_runtime.cpp
blob: ea2f11b835d393b96dd32d82c117c41f9ea0c165 (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()
{
	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;
}