24 #ifndef GUI_WINDOWS_UPDATERWINDOW_H
25 #define GUI_WINDOWS_UPDATERWINDOW_H
75 const std::string &
restrict updatesDir,
76 const bool applyUpdates,
115 void logic()
override final;
126 const std::string &
restrict fixPath,
131 const std::string &
restrict fixPath,
132 const std::string &filerestrict);
138 static unsigned long getFileHash(
const std::string &filePath);
140 static void loadMods(
const std::string &dir,
141 const STD_VECTOR<UpdateFile> &updateFiles);
145 static void unloadMods(
const std::string &dir);
unsigned int mUpdateIndex
std::string mUpdateServerPath
void setProgress(const float p)
static void loadLocalUpdates(const std::string &dir)
static size_t memoryWrite(void *ptr, size_t size, size_t nmemb, void *stream)
ItemLinkHandler * mItemLinkHandler
std::vector< UpdateFile > mUpdateFiles
static bool validateFile(const std::string &filePath, const unsigned long hash)
static void removeUpdateFile(const std::string &path, const std::string &fixPath, const std::string &filerestrict)
static void loadMods(const std::string &dir, const std::vector< UpdateFile > &updateFiles)
UpdaterWindow(const std::string &updateHost, const std::string &updatesDir, const bool applyUpdates, const UpdateTypeT updateType)
void action(const ActionEvent &event)
static void unloadManaPlusUpdates(const std::string &dir)
static unsigned long getFileHash(const std::string &filePath)
static void loadDirMods(const std::string &dir)
void loadFile(std::string file)
StaticBrowserBox * mBrowserBox
static void unloadUpdates(const std::string &dir)
static void unloadMods(const std::string &dir)
std::vector< UpdateFile > mTempUpdateFiles
std::string mNewLabelCaption
unsigned long mCurrentChecksum
void keyPressed(KeyEvent &event)
ProgressBar * mProgressBar
static int updateProgress(void *ptr, const DownloadStatusT status, size_t dt, const size_t dn)
void setLabel(const std::string &)
UpdateDownloadStatusT mDownloadStatus
static void loadManaPlusUpdates(const std::string &dir)
Net::Download * mDownload
std::string mUpdatesDirReal
unsigned int mUpdateIndexOffset
static void addUpdateFile(const std::string &path, const std::string &fixPath, const std::string &file, const Append append)
DownloadStatus ::T DownloadStatusT
#define A_DELETE_COPY(func)
UpdateDownloadStatus ::T UpdateDownloadStatusT
UpdaterWindow * updaterWindow
UpdateType ::T UpdateTypeT