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

void CSkypeProto::InitHookList()
{
	::HookEvent(ME_SYSTEM_MODULESLOADED, &CSkypeProto::OnModulesLoaded);
	::HookEvent(ME_CLIST_PREBUILDCONTACTMENU, &CSkypeProto::PrebuildContactMenu);	
}

void CSkypeProto::InitInstanceHookList()
{
	this->HookProtoEvent(ME_OPT_INITIALISE,		&CSkypeProto::OnOptionsInit);
	this->HookProtoEvent(ME_USERINFO_INITIALISE, &CSkypeProto::OnUserInfoInit);

	this->HookProtoEvent(ME_MSG_PRECREATEEVENT,	&CSkypeProto::OnMessagePreCreate);

	this->HookProtoEvent(ME_MSG_BUTTONPRESSED,	&CSkypeProto::OnTabSRMMButtonPressed); 
}