summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/src/WhenWasIt.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-07-30 15:08:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-07-30 15:08:07 +0300
commite743df09941ad6cf44c81b2bcfbc3396f0fc349c (patch)
treecf73fa49ad828f1e2f5ef6f62fdd79959948da0b /plugins/WhenWasIt/src/WhenWasIt.cpp
parent6462995d9bef854b9a04cc3e794fefcbf2fa2096 (diff)
WWI:
- options moved to UI classes; - global variables -> CMOption<>; - code cleaning;
Diffstat (limited to 'plugins/WhenWasIt/src/WhenWasIt.cpp')
-rw-r--r--plugins/WhenWasIt/src/WhenWasIt.cpp24
1 files changed, 21 insertions, 3 deletions
diff --git a/plugins/WhenWasIt/src/WhenWasIt.cpp b/plugins/WhenWasIt/src/WhenWasIt.cpp
index fe56baa9f4..5f5d718ea5 100644
--- a/plugins/WhenWasIt/src/WhenWasIt.cpp
+++ b/plugins/WhenWasIt/src/WhenWasIt.cpp
@@ -26,8 +26,6 @@ MWindowList hAddBirthdayWndsList = nullptr;
CMPlugin g_plugin;
-CommonData commonData = { 0 };
-
/////////////////////////////////////////////////////////////////////////////////////////
PLUGININFOEX pluginInfoEx = {
@@ -44,7 +42,27 @@ PLUGININFOEX pluginInfoEx = {
};
CMPlugin::CMPlugin() :
- PLUGIN<CMPlugin>(MODULENAME, pluginInfoEx)
+ PLUGIN<CMPlugin>(MODULENAME, pluginInfoEx),
+ foreground(MODULENAME, "Foreground", FOREGROUND_COLOR),
+ background(MODULENAME, "Background", BACKGROUND_COLOR),
+ checkInterval(MODULENAME, "CheckInterval", CHECK_INTERVAL),
+ daysInAdvance(MODULENAME, "DaysInAdvance", DAYS_TO_NOTIFY),
+ daysAfter(MODULENAME, "DaysAfter", DAYS_TO_NOTIFY_AFTER),
+ popupTimeout(MODULENAME, "PopupTimeout", POPUP_TIMEOUT),
+ popupTimeoutToday(MODULENAME, "PopupTimeoutToday", POPUP_TIMEOUT),
+ bUsePopups(MODULENAME, "UsePopups", true),
+ bUseDialog(MODULENAME, "UseDialog", true),
+ bIgnoreSubcontacts(MODULENAME, "IgnoreSubcontacts", false),
+ cShowAgeMode(MODULENAME, "ShowCurrentAge", false),
+ bNoBirthdaysPopup(MODULENAME, "NoBirthdaysPopup", false),
+ bOpenInBackground(MODULENAME, "OpenInBackground", false),
+ cSoundNearDays(MODULENAME, "SoundNearDays", BIRTHDAY_NEAR_DEFAULT_DAYS),
+ cDefaultModule(MODULENAME, "DefaultModule", 0),
+ lPopupClick(MODULENAME, "PopupLeftClick", 2),
+ rPopupClick(MODULENAME, "PopupRightClick", 1),
+ bOncePerDay(MODULENAME, "OncePerDay", false),
+ cDlgTimeout(MODULENAME, "DlgTimeout", POPUP_TIMEOUT),
+ notifyFor(MODULENAME, "NotifyFor", 0)
{}
/////////////////////////////////////////////////////////////////////////////////////////