diff options
Diffstat (limited to 'alarms/alarms.cpp')
-rw-r--r-- | alarms/alarms.cpp | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/alarms/alarms.cpp b/alarms/alarms.cpp index eb0ddc2..eb41ef4 100644 --- a/alarms/alarms.cpp +++ b/alarms/alarms.cpp @@ -33,7 +33,7 @@ WNDPROC old_clist_wndproc; PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
"Alarms",
- PLUGIN_MAKE_VERSION(0,4,0,0),
+ PLUGIN_MAKE_VERSION(0,4,0,1),
"Set once-off, daily, weekly and weekday alarms.",
"Scott Ellis",
"mail@scottellis.com.au",
@@ -218,6 +218,32 @@ static int InitTopToolbarButton(WPARAM wParam, LPARAM lParam) { }
static int MainInit(WPARAM wparam,LPARAM lparam) {
+ if(ServiceExists(MS_UPDATE_REGISTER)) {
+ // register with updater
+ Update update = {0};
+ char szVersion[16];
+
+ update.cbSize = sizeof(Update);
+
+ update.szComponentName = pluginInfo.shortName;
+ update.pbVersion = (BYTE *)CreateVersionString(pluginInfo.version, szVersion);
+ update.cpbVersion = strlen((char *)update.pbVersion);
+
+ update.szUpdateURL = UPDATER_AUTOREGISTER;
+
+ // these are the three lines that matter - the archive, the page containing the version string, and the text (or data)
+ // before the version that we use to locate it on the page
+ // (note that if the update URL and the version URL point to standard file listing entries, the backend xml
+ // data will be used to check for updates rather than the actual web page - this is not true for beta urls)
+ update.szBetaUpdateURL = "http://www.scottellis.com.au/miranda_plugins/alarms.zip";
+ update.szBetaVersionURL = "http://www.scottellis.com.au/miranda_plugins/ver_alarms.html";
+ update.pbBetaVersionPrefix = (BYTE *)" version ";
+
+ update.cpbBetaVersionPrefix = strlen((char *)update.pbBetaVersionPrefix);
+
+ CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
+ }
+
/*
PROTOCOLDESCRIPTOR pd;
HANDLE hContact;
|