From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- plugins/GmailNotifier/src/main.cpp | 4 ++-- plugins/GmailNotifier/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/GmailNotifier/src') diff --git a/plugins/GmailNotifier/src/main.cpp b/plugins/GmailNotifier/src/main.cpp index af7dfa44ec..330fcd2a09 100644 --- a/plugins/GmailNotifier/src/main.cpp +++ b/plugins/GmailNotifier/src/main.cpp @@ -84,7 +84,7 @@ static int OnMirandaStart(WPARAM, LPARAM) return 0; } -extern "C" int __declspec(dllexport) Load() +int CMPlugin::Load() { g_plugin.addSound("Gmail", LPGENW("Other"), LPGENW("Gmail: New thread(s)")); HookEvent(ME_CLIST_DOUBLECLICKED, OpenBrowser); @@ -149,7 +149,7 @@ extern "C" int __declspec(dllexport) Load() ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { if (hTimer) KillTimer(nullptr, hTimer); diff --git a/plugins/GmailNotifier/src/stdafx.h b/plugins/GmailNotifier/src/stdafx.h index cd60bd5335..330a85e62b 100644 --- a/plugins/GmailNotifier/src/stdafx.h +++ b/plugins/GmailNotifier/src/stdafx.h @@ -94,4 +94,7 @@ Account* GetAccountByContact(MCONTACT hContact); struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; -- cgit v1.2.3