summaryrefslogtreecommitdiff
path: root/src/enums/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-01 17:48:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-01 17:48:11 +0300
commit6b15e62c1fefe8838bbc56cb314f3ab24ccebbc4 (patch)
treed158a975756cdd5983632af8ff34229dbb9007d9 /src/enums/net
parent41d9ca028de0740fd23a3dabaece8d1fd1bf93c1 (diff)
downloadplus-6b15e62c1fefe8838bbc56cb314f3ab24ccebbc4.tar.gz
plus-6b15e62c1fefe8838bbc56cb314f3ab24ccebbc4.tar.bz2
plus-6b15e62c1fefe8838bbc56cb314f3ab24ccebbc4.tar.xz
plus-6b15e62c1fefe8838bbc56cb314f3ab24ccebbc4.zip
Convert DownloadStatus enum into strong typed enum.
Diffstat (limited to 'src/enums/net')
-rw-r--r--src/enums/net/downloadstatus.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/enums/net/downloadstatus.h b/src/enums/net/downloadstatus.h
index a217e7a78..9a4730fba 100644
--- a/src/enums/net/downloadstatus.h
+++ b/src/enums/net/downloadstatus.h
@@ -22,17 +22,17 @@
#ifndef ENUMS_NET_DOWNLOADSTATUS_H
#define ENUMS_NET_DOWNLOADSTATUS_H
-namespace DownloadStatus
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(DownloadStatus)
{
- enum Type
- {
- Cancelled = -3,
- ThreadError = -2,
- Error = -1,
- Starting = 0,
- Idle = 1,
- Complete = 2
- };
-} // namespace DownloadStatus
+ Cancelled = -3,
+ ThreadError = -2,
+ Error = -1,
+ Starting = 0,
+ Idle = 1,
+ Complete = 2
+}
+enumEnd(DownloadStatus);
#endif // ENUMS_NET_DOWNLOADSTATUS_H