From a44175dd565f39990ef57719313ef3a88a8d01b6 Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 25 Apr 2007 13:49:06 +0000 Subject: rebuilds for beta release - added some updater compatibility, and more GUIDs for 0.8 git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@144 4f64403b-2f21-0410-a795-97e2b3489a10 --- worldtime_protocol/worldtimeproto.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'worldtime_protocol/worldtimeproto.cpp') diff --git a/worldtime_protocol/worldtimeproto.cpp b/worldtime_protocol/worldtimeproto.cpp index 9feb943..8301014 100644 --- a/worldtime_protocol/worldtimeproto.cpp +++ b/worldtime_protocol/worldtimeproto.cpp @@ -371,6 +371,32 @@ int OnShutdown(WPARAM wParam, LPARAM lParam) { } int OnModulesLoaded(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/worldtimeproto.zip"; + update.szBetaVersionURL = "http://www.scottellis.com.au/miranda_plugins/ver_worldtimeproto.html"; + update.pbBetaVersionPrefix = (BYTE *)"World Time Protocol version "; + + update.cpbBetaVersionPrefix = strlen((char *)update.pbBetaVersionPrefix); + + CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update); + } + // for database editor++ ver 3+ if(ServiceExists("DBEditorpp/RegisterSingleModule")) -- cgit v1.2.3