#ifndef ROLES_H #define ROLES_H #include #include #include #include class Roles { public: Roles(); struct role { int id; QString name; bool assignable; QHash permissions; }; struct role get ( int role_id ); void set ( QJsonArray json_array ); private: QList list; QHash id2role; //QHash name2role; void add ( QJsonObject json_role ); void clear(); }; #endif // ROLES_H