diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-16 15:45:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-16 15:45:40 +0300 |
commit | fdbf478bdce6cdbad0a532621b2ef559a51b3daa (patch) | |
tree | fc4bce3ebdbac3fa67ac9da3de9e2da27d003bb8 /src/gui/windows/serverdialog.h | |
parent | 04febee98f22dd2af0c2e712542ba40083be680f (diff) | |
download | plus-fdbf478bdce6cdbad0a532621b2ef559a51b3daa.tar.gz plus-fdbf478bdce6cdbad0a532621b2ef559a51b3daa.tar.bz2 plus-fdbf478bdce6cdbad0a532621b2ef559a51b3daa.tar.xz plus-fdbf478bdce6cdbad0a532621b2ef559a51b3daa.zip |
Move serverdialogdownloadstatus into separate file.
And convert into strong typed enum.
Diffstat (limited to 'src/gui/windows/serverdialog.h')
-rw-r--r-- | src/gui/windows/serverdialog.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/gui/windows/serverdialog.h b/src/gui/windows/serverdialog.h index 348f1f1f0..e273b7809 100644 --- a/src/gui/windows/serverdialog.h +++ b/src/gui/windows/serverdialog.h @@ -25,6 +25,8 @@ #include "gui/widgets/window.h" +#include "enums/gui/serverdialogdonwloadstatus.h" + #include "enums/net/downloadstatus.h" #include "net/serverinfo.h" @@ -136,23 +138,12 @@ class ServerDialog final : public Window, ServersListModel *mServersListModel A_NONNULLPOINTER; ListBox *mServersList A_NONNULLPOINTER; - enum ServerDialogDownloadStatus - { - DOWNLOADING_UNKNOWN = 0, - DOWNLOADING_ERROR, - DOWNLOADING_PREPARING, - DOWNLOADING_IDLE, - DOWNLOADING_IN_PROGRESS, - DOWNLOADING_COMPLETE, - DOWNLOADING_OVER - }; - /** Status of the current download. */ Net::Download *mDownload; ServerInfo *mServerInfo; CheckBox *mPersistentIPCheckBox; float mDownloadProgress; - ServerDialogDownloadStatus mDownloadStatus; + ServerDialogDownloadStatusT mDownloadStatus; }; #endif // GUI_WINDOWS_SERVERDIALOG_H |