33#include <NDEVR/ItemDownloader.h>
34#include <NDEVR/File.h>
35#include <NDEVR/String.h>
36#include <NDEVR/Time.h>
37#include <NDEVR/TimeSpan.h>
38#include <NDEVR/INIFactory.h>
50 , e_update_available_to_download
51 , e_update_available_to_install
57 virtual bool requstDownloadUpdate();
58 virtual bool requestInstallUpdate(
bool wait_for_completion =
false);
59 virtual bool updateSupported()
const;
64 virtual bool updateRequiresApplicationClose()
const;
65 UpdateStatus updateStatus()
const;
66 void setUpdateStatus(UpdateStatus status);
68 virtual void createUpdateFile(
const String& installer_url,
File output_location);
69 virtual void processUpdateString(
const String& s);
70 Time lastUpdateCheckTime()
const;
71 uint08 currentDownloadSize()
const;
72 uint08 totalDownloadSize()
const;
73 fltp08 downloadPercent()
const;
74 File updateFile()
const;
75 void showUpdateDialogIfNeeded();
76 void appStartupCheck();
77 void setMaxNoUpdateTime(
const TimeSpan& max_no_update_check_time);
78 virtual String defaultURLPathName()
const;
80 static void setApplicationUpdateChecker(
UpdateChecker* checker);
82 static Time CompileTime();
89 void onUpdateDownloadCompleteSlot();
90 void checkForUpdateCompleteSlot();
Definition INIReader.h:57
Definition ItemDownloader.h:104
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
Definition UpdateChecker.h:43
virtual String updateVersion() const
Definition UpdateChecker.h:61
UpdateStatus
Definition UpdateChecker.h:47
String m_update_file_name
Definition UpdateChecker.h:99
ItemDownloader * m_downloader
Definition UpdateChecker.h:95
Time m_last_application_update_check
Definition UpdateChecker.h:100
virtual String updateURLDownload() const
Definition UpdateChecker.h:63
void percentChangedSignal()
void statusChangedSignal()
virtual void requestCheckForUpdate(const String ¤t_version="")=0
File m_download_location
Definition UpdateChecker.h:94
void updateDownloadCompletedSignal(const File &location)
void checkForUpdateCompletedSignal(UpdateStatus update)
static UpdateChecker * s_app_update_checker
Definition UpdateChecker.h:106
String m_update_version
Definition UpdateChecker.h:96
virtual String updateName() const
Definition UpdateChecker.h:60
String m_current_version
Definition UpdateChecker.h:98
TimeSpan m_max_no_update_time
Definition UpdateChecker.h:101
String m_update_url
Definition UpdateChecker.h:97
virtual String updateURLPage() const =0
virtual void _onCheckForUpdateComplete()
Definition UpdateChecker.h:92
uint64_t uint08
-Defines an alias representing an 8 byte, unsigned integer -Can represent exact integer values 0 thro...
Definition BaseValues.hpp:132
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181