diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-29 14:05:22 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-29 14:05:22 +0300 |
commit | dc40af5b8c6c224cfce69e3934d943cf48a56522 (patch) | |
tree | c42833085efd38ecd59d4353224483d9dbe6ffd4 /plugins/PluginUpdater/src/stdafx.h | |
parent | f9f8ac0fe315e61e6c092e0f14265b706f8ef092 (diff) |
PluginUpdater:
- fixes #2409 (restart Miranda automatically after update);
- plugin options moved to CMOption<>;
- code cleaning
Diffstat (limited to 'plugins/PluginUpdater/src/stdafx.h')
-rw-r--r-- | plugins/PluginUpdater/src/stdafx.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/PluginUpdater/src/stdafx.h b/plugins/PluginUpdater/src/stdafx.h index 7ef23fc695..9c0ecbff67 100644 --- a/plugins/PluginUpdater/src/stdafx.h +++ b/plugins/PluginUpdater/src/stdafx.h @@ -162,14 +162,15 @@ struct CMPlugin : public PLUGIN<CMPlugin> int Load() override;
int Unload() override;
+ bool bForceRedownload = false, bSilent; // not a db options
+
// common options
- bool bUpdateOnStartup, bUpdateOnPeriod, bOnlyOnceADay, bSilentMode, bBackup, bChangePlatform, bSilent, bUseHttps;
- bool bForceRedownload = false; // not a db option
- int iPeriod, iPeriodMeasure;
+ CMOption<bool> bUpdateOnStartup, bUpdateOnPeriod, bOnlyOnceADay, bSilentMode, bBackup, bChangePlatform, bUseHttps, bAutoRestart;
+ CMOption<int> iPeriod, iPeriodMeasure;
// popup options
- BYTE PopupDefColors, PopupLeftClickAction, PopupRightClickAction;
- int PopupTimeout;
+ CMOption<BYTE> PopupDefColors, PopupLeftClickAction, PopupRightClickAction;
+ CMOption<DWORD> PopupTimeout;
};
void UninitCheck(void);
@@ -218,7 +219,6 @@ typedef OBJLIST<ServListEntry> SERVLIST; ///////////////////////////////////////////////////////////////////////////////
void InitPopupList();
-void LoadOptions();
void InitNetlib();
void InitIcoLib();
void InitServices();
@@ -231,6 +231,8 @@ void UnloadCheck(); void UnloadListNew();
void UnloadNetlib();
+void CALLBACK RestartPrompt(void *);
+
void BackupFile(wchar_t *ptszSrcFileName, wchar_t *ptszBackFileName);
bool ParseHashes(const wchar_t *ptszUrl, ptrW &baseUrl, SERVLIST &arHashes);
|