MagicSmoke  $VERSION$
srcMOFlag.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_MOFlag
4 #define WOBGEN_MOFlag
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 
16 {
17  Q_GADGET
19  Q_PROPERTY(Nullable<QString> flag READ flag WRITE setflag)
21  Q_PROPERTY(Nullable<QString> description READ description WRITE setdescription)
22  protected:
23  Nullable<QString> mp_flag;
24  Nullable<QString> mp_description;
25  public:
27  virtual Nullable<QString> flag()const{return mp_flag;}
29  virtual Nullable<QString> description()const{return mp_description;}
31  virtual void setflag(Nullable<QString> s){mp_flag=s;}
33  virtual void setdescription(Nullable<QString> s){mp_description=s;}
34  public:
36  QString toString();
40  QDomElement toXml(QDomDocument&doc,QString name="Flag");
42  void toXml(QDomDocument&,QDomElement&);
43  public:
45  MOFlag():WObject(){}
47  MOFlag(const MOFlag&);
49  MOFlag& operator=(const MOFlag&);
51  explicit MOFlag(const QDomElement&);
53  static MOFlag fromXml(const QDomElement&);
55  static MOFlag fromString(const QString&);
57  virtual ~MOFlag(){}
58 
59 };
62 Q_DECLARE_METATYPE(Nullable<MOFlag>)
63 
64 //END OF AUTOMATICALLY GENERATED FILE
65 #endif
virtual Nullable< QString > description() const
Definition: srcMOFlag.h:29
virtual void setdescription(Nullable< QString > s)
Definition: srcMOFlag.h:33
Nullable< QString > mp_flag
Definition: srcMOFlag.h:23
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOFlag.h:8
virtual ~MOFlag()
destructor: deletes this copy of the object
Definition: srcMOFlag.h:57
virtual Nullable< QString > flag() const
Definition: srcMOFlag.h:27
virtual void setflag(Nullable< QString > s)
Definition: srcMOFlag.h:31
Nullable< QString > mp_description
Definition: srcMOFlag.h:24
MOFlag()
default constructor: constructs an invalid instance of MOFlag
Definition: srcMOFlag.h:45
Q_DECLARE_METATYPE(QDomNode)
Transport class for flags and their descriptions. They are actually stored in the config table...
Definition: srcMOFlag.h:15