summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_hooks.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-05-06 17:09:28 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-05-06 17:09:28 +0000
commitadc684b43edcca8d5433339993621b26e4fdd2b5 (patch)
tree2b6720312eba123200346e81fb5626cf1d2c82c5 /protocols/Skype/src/skype_hooks.cpp
parentf94f16702b87c3c876096723f8e6ad94d63847aa (diff)
- we display SRMM button only for Skype contacts;
- service & hooks list aren't needed for a while git-svn-id: http://svn.miranda-ng.org/main/trunk@4594 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_hooks.cpp')
-rw-r--r--protocols/Skype/src/skype_hooks.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/protocols/Skype/src/skype_hooks.cpp b/protocols/Skype/src/skype_hooks.cpp
index 42155750c9..60592fa39f 100644
--- a/protocols/Skype/src/skype_hooks.cpp
+++ b/protocols/Skype/src/skype_hooks.cpp
@@ -1,24 +1,13 @@
#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]);
+ ::HookEvent(ME_CLIST_PREBUILDCONTACTMENU, &CSkypeProto::PrebuildContactMenu);
}
HANDLE CSkypeProto::HookEvent(const char* szEvent, SkypeEventFunc handler)
{
- HANDLE hook = ::HookEventObj(szEvent, (MIRANDAHOOKOBJ)*( void**)&handler, this);
- this->instanceHookList.insert(hook);
- return hook;
+ return ::HookEventObj(szEvent, (MIRANDAHOOKOBJ)*( void**)&handler, this);
}
void CSkypeProto::InitInstanceHookList()
@@ -30,9 +19,3 @@ void CSkypeProto::InitInstanceHookList()
this->HookEvent(ME_MSG_BUTTONPRESSED, &CSkypeProto::OnTabSRMMButtonPressed);
}
-
-void CSkypeProto::UninitInstanceHookList()
-{
- for (int i = 0; i < this->instanceHookList.getCount(); i++)
- ::UnhookEvent(this->instanceHookList[i]);
-} \ No newline at end of file