diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-13 01:08:06 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-13 01:08:06 +0000 |
commit | 6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce (patch) | |
tree | 1a846219c3fdf6b3a0b2f17f15c4da4fec406845 /src/gui/updatewindow.h | |
parent | 07b3632e605488221f34bff48f298b394af7083a (diff) | |
download | mana-client-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.tar.gz mana-client-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.tar.bz2 mana-client-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.tar.xz mana-client-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.zip |
Unified the loops for the various dialogs that are shown before the actual game starts.
Diffstat (limited to 'src/gui/updatewindow.h')
-rw-r--r-- | src/gui/updatewindow.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/gui/updatewindow.h b/src/gui/updatewindow.h index fa69bd4b..56ff4065 100644 --- a/src/gui/updatewindow.h +++ b/src/gui/updatewindow.h @@ -26,6 +26,9 @@ #include <guichan/actionlistener.hpp> +#include <string> +#include <vector> + #include "window.h" #include "../guichanfwd.h" @@ -34,8 +37,10 @@ class BrowserBox; class Button; class ProgressBar; class ScrollArea; -class SDL_Thread; -class SDL_mutex; + +struct SDL_mutex; +struct SDL_KeyboardEvent; +struct SDL_Thread; /** * Update progress window GUI @@ -82,7 +87,7 @@ class UpdaterWindow : public Window, public gcn::ActionListener */ void addRow(const std::string &row); - void updateData(); + void logic(); int updateState; @@ -172,6 +177,16 @@ class UpdaterWindow : public Window, public gcn::ActionListener */ char *mCurlError; + /** + * List of files to download + */ + std::vector<std::string> mFiles; + + /** + * Index of the file to be downloaded + */ + unsigned int mFileIndex; + gcn::Label *mLabel; /**< Progress bar caption. */ Button *mCancelButton; /**< Button to stop the update process. */ Button *mPlayButton; /**< Button to start playing. */ @@ -180,6 +195,6 @@ class UpdaterWindow : public Window, public gcn::ActionListener ScrollArea *mScrollArea; /**< Used to scroll news box. */ }; -void updateData(); +void updateInputHandler(SDL_KeyboardEvent *keyEvent); #endif |