summaryrefslogtreecommitdiff
path: root/src/gui/windows/updaterwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-16 15:56:08 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-16 15:57:43 +0300
commite811e48760c7f9a22615f40a0b025d34b9f12eb0 (patch)
tree2d9d75f3d29a19a99b8529f5fc8cc4106b972507 /src/gui/windows/updaterwindow.h
parentfdbf478bdce6cdbad0a532621b2ef559a51b3daa (diff)
downloadmanaverse-e811e48760c7f9a22615f40a0b025d34b9f12eb0.tar.gz
manaverse-e811e48760c7f9a22615f40a0b025d34b9f12eb0.tar.bz2
manaverse-e811e48760c7f9a22615f40a0b025d34b9f12eb0.tar.xz
manaverse-e811e48760c7f9a22615f40a0b025d34b9f12eb0.zip
Move downloadstatus enum into separate file.
Also convert it to strong typed enum.
Diffstat (limited to 'src/gui/windows/updaterwindow.h')
-rw-r--r--src/gui/windows/updaterwindow.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/gui/windows/updaterwindow.h b/src/gui/windows/updaterwindow.h
index 3bd8a5a6f..0d322dccf 100644
--- a/src/gui/windows/updaterwindow.h
+++ b/src/gui/windows/updaterwindow.h
@@ -23,6 +23,8 @@
#ifndef GUI_WINDOWS_UPDATERWINDOW_H
#define GUI_WINDOWS_UPDATERWINDOW_H
+#include "enums/gui/updatedownloadstatus.h"
+
#include "enums/net/downloadstatus.h"
#include "enums/net/updatetype.h"
@@ -170,19 +172,6 @@ class UpdaterWindow final : public Window,
static bool validateFile(const std::string &filePath,
const unsigned long hash) A_WARN_UNUSED;
- enum UpdateDownloadStatus
- {
- UPDATE_ERROR = 0,
- UPDATE_IDLE,
- UPDATE_LIST,
- UPDATE_COMPLETE,
- UPDATE_NEWS,
- UPDATE_RESOURCES,
- UPDATE_PATCH,
- UPDATE_LIST2,
- UPDATE_RESOURCES2
- };
-
/** The new progress value to be set in the logic method. */
float mDownloadProgress;
@@ -229,7 +218,7 @@ class UpdaterWindow final : public Window,
ScrollArea *mScrollArea A_NONNULLPOINTER;
/** Status of the current download. */
- UpdateDownloadStatus mDownloadStatus;
+ UpdateDownloadStatusT mDownloadStatus;
/** Byte count currently downloaded in mMemoryBuffer. */
int mDownloadedBytes;