00001 #ifndef _SOFTWARE_UPDATE_H_
00002 #define _SOFTWARE_UPDATE_H_
00003
00004 #include "GDateTime.h"
00005
00006 class GSoftwareUpdate
00007 {
00008 struct GSoftwareUpdatePriv *d;
00009
00010 public:
00011 struct UpdateInfo
00012 {
00013 GAutoString Name;
00014 GAutoString Version;
00015 GAutoString Build;
00016 GAutoString Uri;
00017 GDateTime Date;
00018 };
00019
00020 GSoftwareUpdate(char *SoftwareName, char *UpdateUri, char *OptionalTempPath = 0);
00021 virtual ~GSoftwareUpdate();
00022
00023 bool CheckForUpdate(UpdateInfo &Info, GViewI *WithUi, bool IncBetas);
00024 bool ApplyUpdate(UpdateInfo &Info, bool DownloadOnly, GViewI *WithUi);
00025 char *GetErrorMessage();
00026 };
00027
00028 #endif