summaryrefslogtreecommitdiff
path: root/plugins/Updater/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Updater/options.h')
-rw-r--r--plugins/Updater/options.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/Updater/options.h b/plugins/Updater/options.h
new file mode 100644
index 0000000000..ccaaacf1d1
--- /dev/null
+++ b/plugins/Updater/options.h
@@ -0,0 +1,49 @@
+#ifndef _OPTIONS_INC
+#define _OPTIONS_INC
+
+#include "services.h"
+#include "icons.h"
+
+typedef enum {VR_MAJOR, VR_MINOR, VR_RELEASE, VR_BUILD} VersionRequirement;
+
+typedef struct Options_tag {
+ bool check_on_startup;
+ bool check_once;
+ bool check_daily;
+ bool no_conf_idle;
+ bool backup;
+ TCHAR temp_folder[MAX_PATH];
+ TCHAR backup_folder[MAX_PATH];
+ TCHAR data_folder[MAX_PATH];
+ bool use_xml_backend;
+ bool start_offline;
+ bool popup_notify;
+ bool set_colours;
+ bool restart_menu_item;
+ bool update_and_exit_menu_item;
+ COLORREF bkCol;
+ COLORREF textCol;
+ VersionRequirement ver_req;
+ bool save_zips;
+ bool no_unzip;
+ bool auto_dll_only;
+ TCHAR zip_folder[MAX_PATH];
+} Options;
+
+extern Options options;
+
+extern HWND hwndOptions;
+
+#define WMU_CHECKING (WM_USER + 41)
+#define WMU_DONECHECKING (WM_USER + 42)
+
+
+int OptInit(WPARAM wParam, LPARAM lParam);
+
+void LoadOptions();
+void SaveOptions();
+
+// do this after icolib support has been handled
+void InitOptionsMenuItems();
+
+#endif