6 #ifndef SWIFT_MISC_NETWORK_ROLE_H
7 #define SWIFT_MISC_NETWORK_ROLE_H
21 namespace swift::misc::network
32 IndexName = CPropertyIndexRef::GlobalIndexCRole,
40 CRole(
const QString &name,
const QString &description);
43 const QString &
getName()
const {
return m_name; }
46 void setName(
const QString &name) { m_name = name.trimmed().toUpper(); }
52 void setDescription(
const QString &description) { m_description = description.trimmed(); }
55 QString convertToQString(
bool i18n =
false)
const;
64 static CRole fromDatabaseJson(
const QJsonObject &json);
68 QString m_description;
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Class from which a derived class can inherit datastore-related functions.
ColumnIndex
Property index.
CRole()=default
Constructor.
const QString & getName() const
Name.
void setName(const QString &name)
Name.
const QString & getDescription() const
Description.
void setDescription(const QString &description)
Description.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...