7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
18 Q_PROPERTY(Nullable<QString> name READ name WRITE setname)
20 Q_PROPERTY(Nullable<QString> description READ description WRITE setdescription)
22 Q_PROPERTY(Nullable<QString> flags READ flags WRITE setflags)
24 Q_PROPERTY(QList<QString> rights READ rights WRITE setrights)
32 virtual Nullable<QString>
name()
const{
return mp_name;}
34 virtual Nullable<QString>
description()
const{
return mp_description;}
36 virtual Nullable<QString>
flags()
const{
return mp_flags;}
38 virtual QList<QString>
rights()
const{
return mp_rights;}
40 virtual void setname(Nullable<QString> s){mp_name=s;}
44 virtual void setflags(Nullable<QString> s){mp_flags=s;}
46 virtual void setrights(QList<QString> s){mp_rights=s;}
48 virtual void addrights(Nullable<QString> a){mp_rights.append(a);}
55 QDomElement toXml(QDomDocument&doc,QString name=
"Role");
57 void toXml(QDomDocument&,QDomElement&);
66 explicit MORole(
const QDomElement&);
68 static MORole fromXml(
const QDomElement&);
70 static MORole fromString(
const QString&);
virtual QList< QString > rights() const
Definition: srcMORole.h:38
virtual void setname(Nullable< QString > s)
Definition: srcMORole.h:40
Nullable< QString > mp_flags
Definition: srcMORole.h:28
Definition: srcMORole.h:14
Nullable< QString > mp_description
Definition: srcMORole.h:27
virtual void clearrights()
Definition: srcMORole.h:47
MORole()
default constructor: constructs an invalid instance of MORole
Definition: srcMORole.h:60
virtual void setflags(Nullable< QString > s)
Definition: srcMORole.h:44
virtual Nullable< QString > name() const
Definition: srcMORole.h:32
QList< QString > mp_rights
Definition: srcMORole.h:29
virtual Nullable< QString > flags() const
Definition: srcMORole.h:36
virtual void setdescription(Nullable< QString > s)
Definition: srcMORole.h:42
virtual void setrights(QList< QString > s)
Definition: srcMORole.h:46
Nullable< QString > mp_name
Definition: srcMORole.h:26
Q_DECLARE_METATYPE(QDomNode)
virtual void addrights(Nullable< QString > a)
Definition: srcMORole.h:48
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMORole.h:8
virtual ~MORole()
destructor: deletes this copy of the object
Definition: srcMORole.h:72
virtual Nullable< QString > description() const
Definition: srcMORole.h:34