From 7478b207dea289dcddb5e1bce5b5191ac92605b1 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 20 Apr 2014 18:52:22 +0000 Subject: Dropbox: service and events reworked git-svn-id: http://svn.miranda-ng.org/main/trunk@9005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/Dropbox/src/dropbox.cpp') diff --git a/plugins/Dropbox/src/dropbox.cpp b/plugins/Dropbox/src/dropbox.cpp index 9081daae85..f998a6d935 100644 --- a/plugins/Dropbox/src/dropbox.cpp +++ b/plugins/Dropbox/src/dropbox.cpp @@ -11,9 +11,7 @@ CDropbox::CDropbox() HookEventObj(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown, this); HookEventObj(ME_SYSTEM_MODULESLOADED, OnModulesLoaded, this); - hFileSendFailedHook = CreateHookableEvent(ME_DROPBOX_SEND_FAILED); - hFileSendSuccessedHook = CreateHookableEvent(ME_DROPBOX_SEND_SUCCEEDED); - HookEventObj(ME_DROPBOX_SEND_SUCCEEDED, OnSendSuccessed, this); + hFileSentEventHook = CreateHookableEvent(ME_DROPBOX_SENT); CreateServiceFunctionObj(MS_DROPBOX_SEND_FILE, SendFileToDropbox, this); @@ -36,8 +34,7 @@ CDropbox::CDropbox() CDropbox::~CDropbox() { - DestroyHookableEvent(hFileSendFailedHook); - DestroyHookableEvent(hFileSendSuccessedHook); + DestroyHookableEvent(hFileSentEventHook); } MCONTACT CDropbox::GetDefaultContact() -- cgit v1.2.3