MagicSmoke  $VERSION$
srcMOTemplate.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_MOTemplate
4 #define WOBGEN_MOTemplate
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> filename READ filename WRITE setfilename)
20  Q_PROPERTY(Nullable<QString> description READ description WRITE setdescription)
22  Q_PROPERTY(Nullable<QByteArray> content READ content WRITE setcontent)
24  Q_PROPERTY(Nullable<QString> hash READ hash WRITE sethash)
26  Q_PROPERTY(Nullable<bool> dolog READ dolog WRITE setdolog)
28  Q_PROPERTY(Nullable<QString> flags READ flags WRITE setflags)
30  Q_PROPERTY(Nullable<QString> tags READ tags WRITE settags)
32  Q_PROPERTY(Nullable<bool> canuse READ canuse WRITE setcanuse)
33  protected:
34  Nullable<QString> mp_filename;
35  Nullable<QString> mp_description;
36  Nullable<QByteArray> mp_content;
37  Nullable<QString> mp_hash;
38  Nullable<bool> mp_dolog;
39  Nullable<QString> mp_flags;
40  Nullable<QString> mp_tags;
41  Nullable<bool> mp_canuse;
42  public:
44  virtual Nullable<QString> filename()const{return mp_filename;}
46  virtual Nullable<QString> description()const{return mp_description;}
48  virtual Nullable<QByteArray> content()const{return mp_content;}
50  virtual Nullable<QString> hash()const{return mp_hash;}
52  virtual Nullable<bool> dolog()const{return mp_dolog;}
54  virtual Nullable<QString> flags()const{return mp_flags;}
56  virtual Nullable<QString> tags()const{return mp_tags;}
58  virtual Nullable<bool> canuse()const{return mp_canuse;}
60  virtual void setfilename(Nullable<QString> s){mp_filename=s;}
62  virtual void setdescription(Nullable<QString> s){mp_description=s;}
64  virtual void setcontent(Nullable<QByteArray> s){mp_content=s;}
66  virtual void sethash(Nullable<QString> s){mp_hash=s;}
68  virtual void setdolog(Nullable<bool> s){mp_dolog=s;}
70  virtual void setflags(Nullable<QString> s){mp_flags=s;}
72  virtual void settags(Nullable<QString> s){mp_tags=s;}
74  virtual void setcanuse(Nullable<bool> s){mp_canuse=s;}
75  public:
77  QString toString();
81  QDomElement toXml(QDomDocument&doc,QString name="Template");
83  void toXml(QDomDocument&,QDomElement&);
84  public:
86  MOTemplate():WObject(){}
88  MOTemplate(const MOTemplate&);
90  MOTemplate& operator=(const MOTemplate&);
92  explicit MOTemplate(const QDomElement&);
94  static MOTemplate fromXml(const QDomElement&);
96  static MOTemplate fromString(const QString&);
98  virtual ~MOTemplate(){}
99 
100 };
104 
105 //END OF AUTOMATICALLY GENERATED FILE
106 #endif
virtual void setcanuse(Nullable< bool > s)
Definition: srcMOTemplate.h:74
Nullable< QString > mp_description
Definition: srcMOTemplate.h:35
virtual void setdescription(Nullable< QString > s)
Definition: srcMOTemplate.h:62
virtual Nullable< QString > flags() const
Definition: srcMOTemplate.h:54
virtual Nullable< QString > hash() const
Definition: srcMOTemplate.h:50
Nullable< QString > mp_flags
Definition: srcMOTemplate.h:39
virtual void setfilename(Nullable< QString > s)
Definition: srcMOTemplate.h:60
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOTemplate.h:8
Nullable< QByteArray > mp_content
Definition: srcMOTemplate.h:36
virtual void sethash(Nullable< QString > s)
Definition: srcMOTemplate.h:66
virtual Nullable< QString > filename() const
Definition: srcMOTemplate.h:44
virtual void setcontent(Nullable< QByteArray > s)
Definition: srcMOTemplate.h:64
virtual Nullable< QString > tags() const
Definition: srcMOTemplate.h:56
Nullable< bool > mp_dolog
Definition: srcMOTemplate.h:38
virtual Nullable< QByteArray > content() const
Definition: srcMOTemplate.h:48
virtual Nullable< QString > description() const
Definition: srcMOTemplate.h:46
virtual void settags(Nullable< QString > s)
Definition: srcMOTemplate.h:72
Nullable< QString > mp_hash
Definition: srcMOTemplate.h:37
virtual Nullable< bool > canuse() const
Definition: srcMOTemplate.h:58
Q_DECLARE_METATYPE(QDomNode)
virtual void setflags(Nullable< QString > s)
Definition: srcMOTemplate.h:70
virtual void setdolog(Nullable< bool > s)
Definition: srcMOTemplate.h:68
Nullable< bool > mp_canuse
Definition: srcMOTemplate.h:41
virtual ~MOTemplate()
destructor: deletes this copy of the object
Definition: srcMOTemplate.h:98
MOTemplate()
default constructor: constructs an invalid instance of MOTemplate
Definition: srcMOTemplate.h:86
virtual Nullable< bool > dolog() const
Definition: srcMOTemplate.h:52
Nullable< QString > mp_tags
Definition: srcMOTemplate.h:40
Definition: srcMOTemplate.h:14
Nullable< QString > mp_filename
Definition: srcMOTemplate.h:34