diff options
Diffstat (limited to 'src/gui/updatewindow.h')
-rw-r--r-- | src/gui/updatewindow.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/gui/updatewindow.h b/src/gui/updatewindow.h index 8388b722..55415938 100644 --- a/src/gui/updatewindow.h +++ b/src/gui/updatewindow.h @@ -39,6 +39,16 @@ class Button; class ProgressBar; class ScrollArea; +struct updateFile +{ + public: + std::string name; + std::string hash; + std::string type; + bool required; + std::string desc; +}; + /** * Update progress window GUI * @@ -96,6 +106,12 @@ private: void download(); /** + * Loads the updates this window has gotten into the resource manager + */ + void loadUpdates(); + + + /** * A download callback for progress updates. */ static int updateProgress(void *ptr, DownloadStatus status, @@ -160,10 +176,10 @@ private: Net::Download *mDownload; /** List of files to download. */ - std::vector<std::string> mLines; + std::vector<updateFile> mUpdateFiles; /** Index of the file to be downloaded. */ - unsigned int mLineIndex; + unsigned int mUpdateIndex; gcn::Label *mLabel; /**< Progress bar caption. */ Button *mCancelButton; /**< Button to stop the update process. */ |