summaryrefslogtreecommitdiff
path: root/src/resources/groupinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-18 00:05:26 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-18 00:05:26 +0300
commitddd49c13d9b89e11c900657154e0504c8c8af2a9 (patch)
tree057577aa34b1cc12a9e117629b1cc9c47d6d06c8 /src/resources/groupinfo.h
parentd1b6556bd125f52744ff12b8dd2e644a1515205f (diff)
downloadmv-ddd49c13d9b89e11c900657154e0504c8c8af2a9.tar.gz
mv-ddd49c13d9b89e11c900657154e0504c8c8af2a9.tar.bz2
mv-ddd49c13d9b89e11c900657154e0504c8c8af2a9.tar.xz
mv-ddd49c13d9b89e11c900657154e0504c8c8af2a9.zip
Add permissions and commands fields into groups.
For now not reading it from xml or using it in any way.
Diffstat (limited to 'src/resources/groupinfo.h')
-rw-r--r--src/resources/groupinfo.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/resources/groupinfo.h b/src/resources/groupinfo.h
index 973249d19..924c71b2d 100644
--- a/src/resources/groupinfo.h
+++ b/src/resources/groupinfo.h
@@ -23,19 +23,24 @@
#include "localconsts.h"
+#include "enums/resources/servercommandenable.h"
+#include "enums/resources/servercommandtype.h"
+#include "enums/resources/serverpermissiontype.h"
+
+#include "enums/simpletypes/enable.h"
+
+#include "utils/cast.h"
+
#include <string>
struct GroupInfo final
{
- GroupInfo() :
- name(),
- longName(),
- badge(),
- showBadge(false)
- { }
+ GroupInfo();
A_DEFAULT_COPY(GroupInfo)
+ ServerCommandEnable::Type mCommands[CAST_SIZE(ServerCommandType::Max)];
+ Enable mPermissions[CAST_SIZE(ServerPermissionType::Max)];
std::string name;
std::string longName;
std::string badge;