GIGA REFACTOR
This commit is contained in:
@@ -18,26 +18,26 @@ private:
|
||||
public:
|
||||
Updater() : m_Progress(0), m_DownloadComplete(false), m_FileWrited(false), m_CancelDownload(false) {}
|
||||
|
||||
bool checkUpdate();
|
||||
void downloadUpdate();
|
||||
void cancelDownload() { m_CancelDownload = true; m_Progress = 0.0f; m_DownloadComplete = false; }
|
||||
bool writeFile();
|
||||
bool CheckUpdate();
|
||||
void DownloadUpdate();
|
||||
void CancelDownload() { m_CancelDownload = true; m_Progress = 0.0f; m_DownloadComplete = false; }
|
||||
bool WriteFile();
|
||||
|
||||
void clearCache() { m_FileBuffer.Clear(); }
|
||||
void ClearCache() { m_FileBuffer.Clear(); }
|
||||
|
||||
float getDownloadProgress() { return m_Progress; }
|
||||
bool isDownloadComplete() { return m_DownloadComplete; }
|
||||
bool isFileWrited() { return m_FileWrited; }
|
||||
float GetDownloadProgress() { return m_Progress; }
|
||||
bool IsDownloadComplete() { return m_DownloadComplete; }
|
||||
bool IsFileWrited() { return m_FileWrited; }
|
||||
|
||||
static std::string getLocalFilePath();
|
||||
static void removeOldFile();
|
||||
static std::string GetLocalFilePath();
|
||||
static void RemoveOldFile();
|
||||
|
||||
static std::string getCurrentVersion() { return TD_VERSION; }
|
||||
std::string getLastVersion() { return m_LastVersion; }
|
||||
static std::string GetCurrentVersion() { return TD_VERSION; }
|
||||
std::string GetLastVersion() { return m_LastVersion; }
|
||||
|
||||
bool canUpdate();
|
||||
bool CanUpdate();
|
||||
private:
|
||||
std::string getDownloadFileURL();
|
||||
std::string GetDownloadFileURL();
|
||||
};
|
||||
|
||||
} // namespace utils
|
||||
|
||||
Reference in New Issue
Block a user