summaryrefslogtreecommitdiff
path: root/PackUpdater/Src/Common.h
diff options
context:
space:
mode:
Diffstat (limited to 'PackUpdater/Src/Common.h')
-rw-r--r--PackUpdater/Src/Common.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/PackUpdater/Src/Common.h b/PackUpdater/Src/Common.h
index 49cf294..1222439 100644
--- a/PackUpdater/Src/Common.h
+++ b/PackUpdater/Src/Common.h
@@ -21,8 +21,10 @@ Boston, MA 02111-1307, USA.
#define MIRANDA_CUSTOM_LP
// Windows Header Files:
+#include <time.h>
#include <stdio.h>
#include <windows.h>
+#include <Windowsx.h>
#include <deque>
#include "Wininet.h"
#include "Urlmon.h"
@@ -96,7 +98,11 @@ struct PackUpdaterIconList
};
#define DEFAULT_REMINDER 1
-#define DEFAULT_AUTOUPDATE 1
+#define DEFAULT_UPDATEONSTARTUP 1
+#define DEFAULT_ONLYONCEADAY 0
+#define DEFAULT_UPDATEONPERIOD 0
+#define DEFAULT_PERIOD 1
+#define DEFAULT_PERIODMEASURE 1
#define DEFAULT_FILECOUNT 0
#define DEFAULT_FILETYPE 0 //0 - not defined, 1 - pack, 2 - plugin, 3 - icon, 4 - files in miranda root (e.g. langpack, dbtool), 5 - same as 4 without restart
@@ -108,9 +114,9 @@ using std::wstring;
using namespace std;
extern HINSTANCE hInst;
-extern INT FileCount, CurrentFile, Number, UpdatesCount;
+extern INT FileCount, CurrentFile, Number, UpdatesCount, Period;
extern BOOL Silent, DlgDld;
-extern BYTE Reminder, AutoUpdate;
+extern BYTE Reminder, UpdateOnStartup, UpdateOnPeriod, OnlyOnceADay, PeriodMeasure;
extern TCHAR tszRoot[MAX_PATH], tszDialogMsg[2048];
extern FILEINFO* pFileInfo;
extern FILEURL* pFileUrl;
@@ -118,6 +124,7 @@ extern HANDLE CheckThread, hOnPreShutdown, hOptHook, hLoadHook;
extern MYOPTIONS MyOptions;
extern aPopups PopupsList[POPUPS];
extern LPCTSTR Title, Text;
+extern HANDLE Timer;
VOID InitPopupList();
VOID LoadOptions();
@@ -136,4 +143,6 @@ VOID DlgDownloadProc();
INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK DlgMsgPop(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
void __stdcall ExitMe(void*);
-void __stdcall RestartMe(void*); \ No newline at end of file
+void __stdcall RestartMe(void*);
+BOOL AllowUpdateOnStartup();
+VOID InitTimer(); \ No newline at end of file