MagicSmoke  $VERSION$
srcMORole.h
Go to the documentation of this file.
1 //BEGIN OF AUTOMATICALLY GENERATED FILE
2 //DO NOT EDIT THIS FILE DIRECTLY, USE THE XML SOURCE!
3 #ifndef WOBGEN_MORole
4 #define WOBGEN_MORole
5 
6 
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
9 #endif
10 
11 #include "WObject"
12 #include <QCoreApplication>
13 
15 {
16  Q_GADGET
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)
25  protected:
26  Nullable<QString> mp_name;
27  Nullable<QString> mp_description;
28  Nullable<QString> mp_flags;
29  QList<QString> mp_rights;
30  public:
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;}
42  virtual void setdescription(Nullable<QString> s){mp_description=s;}
44  virtual void setflags(Nullable<QString> s){mp_flags=s;}
46  virtual void setrights(QList<QString> s){mp_rights=s;}
47  virtual void clearrights(){mp_rights.clear();}
48  virtual void addrights(Nullable<QString> a){mp_rights.append(a);}
49  public:
51  QString toString();
55  QDomElement toXml(QDomDocument&doc,QString name="Role");
57  void toXml(QDomDocument&,QDomElement&);
58  public:
60  MORole():WObject(){}
62  MORole(const MORole&);
64  MORole& operator=(const MORole&);
66  explicit MORole(const QDomElement&);
68  static MORole fromXml(const QDomElement&);
70  static MORole fromString(const QString&);
72  virtual ~MORole(){}
73 
74 };
77 Q_DECLARE_METATYPE(Nullable<MORole>)
78 
79 //END OF AUTOMATICALLY GENERATED FILE
80 #endif
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