summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_hooks.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-26 15:19:17 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-26 15:19:17 +0000
commit30b3cd352057c79cf26e1ce73a8c6554cbb4b7be (patch)
treeb6d9b287c6b547e68a18bba25d243b3d8c252d72 /protocols/Skype/src/skype_hooks.cpp
parent0fdbd8fce63637a7abf746942060f858b225af7d (diff)
cleanup project
git-svn-id: http://svn.miranda-ng.org/main/trunk@4534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_hooks.cpp')
-rw-r--r--protocols/Skype/src/skype_hooks.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_hooks.cpp b/protocols/Skype/src/skype_hooks.cpp
new file mode 100644
index 0000000000..9fb927f1a2
--- /dev/null
+++ b/protocols/Skype/src/skype_hooks.cpp
@@ -0,0 +1,31 @@
+#include "skype_proto.h"
+
+LIST<void> CSkypeProto::hookList(1);
+
+void CSkypeProto::InitHookList()
+{
+ CSkypeProto::hookList.insert(
+ ::HookEvent(ME_CLIST_PREBUILDCONTACTMENU, &CSkypeProto::PrebuildContactMenu));
+}
+
+void CSkypeProto::UninitHookList()
+{
+ for (int i = 0; i < CSkypeProto::hookList.getCount(); i++)
+ {
+ ::UnhookEvent(CSkypeProto::hookList[i]);
+ }
+}
+
+void CSkypeProto::InitInstanceHookList()
+{
+ this->HookEvent(ME_OPT_INITIALISE, &CSkypeProto::OnOptionsInit);
+ this->HookEvent(ME_USERINFO_INITIALISE, &CSkypeProto::OnUserInfoInit);
+}
+
+void CSkypeProto::UninitInstanceHookList()
+{
+ for (int i = 0; i < this->instanceHookList.getCount(); i++)
+ {
+ ::UnhookEvent(this->instanceHookList[i]);
+ }
+} \ No newline at end of file