diff options
author | George Hazan <george.hazan@gmail.com> | 2012-05-19 09:28:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-05-19 09:28:14 +0000 |
commit | b686ce8ec009372905e1d71c19323f7892589038 (patch) | |
tree | 5bed79c846115658e5f392eb2a721cd58a17ba00 /plugins/updater/xmldata.h | |
parent | 7a2c6126cd995cfdbd5f3167609cd7e09ffacf35 (diff) |
updater returned by request of Awkward
git-svn-id: http://svn.miranda-ng.org/main/trunk@67 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/updater/xmldata.h')
-rw-r--r-- | plugins/updater/xmldata.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/updater/xmldata.h b/plugins/updater/xmldata.h new file mode 100644 index 0000000000..d914e9130e --- /dev/null +++ b/plugins/updater/xmldata.h @@ -0,0 +1,29 @@ +#ifndef _XMLDATA_INC
+#define _XMLDATA_INC
+
+#include "options.h"
+#include "bzip2-1.0.3/bzlib.h"
+#include "utils.h"
+#include "popups.h"
+#include "services.h"
+
+#define MIM_BACKEND_URL_PREFIX "http://addons.miranda-im.org/backend/"
+#define MIM_DOWNLOAD_URL_PREFIX "http://addons.miranda-im.org/feed.php?dlfile="
+#define MIM_VIEW_URL_PREFIX "http://addons.miranda-im.org/details.php?action=viewfile&id="
+#define MIM_CHANGELOG_URL_PREFIX "http://addons.miranda-im.org/details.php?action=viewlog&id="
+// this is the minimum age (in hours) of the local copy before a new download is allowed
+#define MIN_XMLDATA_AGE 8
+
+void FreeXMLData(const Category cat);
+bool OldXMLDataExists(const Category cat);
+bool LoadOldXMLData(const Category cat, bool update_age);
+bool UpdateXMLData(const Category cat, const char *redirect_url = 0, int recurse_count = 0);
+bool XMLDataAvailable(const Category cat);
+
+const char *FindVersion(int fileID, BYTE *pbVersionBytes, int cpbVersionBytes, const Category cat);
+int FindFileID(const char *name, const Category cat, UpdateList *update_list);
+
+// update file listing id's for non-plugin AUTOREGISTER components
+void UpdateFLIDs(UpdateList &update_list);
+
+#endif
|