summaryrefslogtreecommitdiff
path: root/plugins/GmailNotifier/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-28 22:38:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-28 22:39:22 +0300
commitca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d (patch)
tree2fc218f22e6fb28baa5b5efc02ab652daae97d73 /plugins/GmailNotifier/src
parent9250a0caadc93ec7a92b99deea151ab7a1c403da (diff)
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/GmailNotifier/src')
-rw-r--r--plugins/GmailNotifier/src/main.cpp4
-rw-r--r--plugins/GmailNotifier/src/stdafx.h3
2 files changed, 5 insertions, 2 deletions
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>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};