summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-13 01:08:06 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-13 01:08:06 +0000
commit6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce (patch)
tree1a846219c3fdf6b3a0b2f17f15c4da4fec406845 /src/gui/updatewindow.h
parent07b3632e605488221f34bff48f298b394af7083a (diff)
downloadMana-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.tar.gz
Mana-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.tar.bz2
Mana-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.tar.xz
Mana-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.h23
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