6 #ifndef SWIFT_MISC_NETWORK_ROLELIST_H
7 #define SWIFT_MISC_NETWORK_ROLELIST_H
12 #include <QStringList>
21 namespace swift::misc::network
36 bool hasRole(
const QString &roleName)
const;
39 bool hasRole(
const CRole &role)
const;
42 bool hasAnyRole(
const QStringList &roles)
const;
48 QString namesAsString(
const QString &separator =
", ")
const;
51 static CRoleList fromDatabaseJson(
const QJsonArray &array);
Generic ordered container with value semantics.
Generic sequential container with value semantics.
CSequence()=default
Default constructor.
Value object encapsulating a list of servers.
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
#define SWIFT_MISC_EXPORT
Export a class or function from the library.