MagicSmoke  $VERSION$
srcMOHost.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_MOHost
4 #define WOBGEN_MOHost
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> key READ key WRITE setkey)
21  protected:
22  Nullable<QString> mp_name;
23  Nullable<QString> mp_key;
24  public:
26  virtual Nullable<QString> name()const{return mp_name;}
28  virtual Nullable<QString> key()const{return mp_key;}
30  virtual void setname(Nullable<QString> s){mp_name=s;}
32  virtual void setkey(Nullable<QString> s){mp_key=s;}
33  public:
35  QString toString();
39  QDomElement toXml(QDomDocument&doc,QString name="Host");
41  void toXml(QDomDocument&,QDomElement&);
42  public:
44  MOHost():WObject(){}
46  MOHost(const MOHost&);
48  MOHost& operator=(const MOHost&);
50  explicit MOHost(const QDomElement&);
52  static MOHost fromXml(const QDomElement&);
54  static MOHost fromString(const QString&);
56  virtual ~MOHost(){}
57 
58 };
61 Q_DECLARE_METATYPE(Nullable<MOHost>)
62 
63 //END OF AUTOMATICALLY GENERATED FILE
64 #endif
MOHost()
default constructor: constructs an invalid instance of MOHost
Definition: srcMOHost.h:44
virtual void setname(Nullable< QString > s)
Definition: srcMOHost.h:30
virtual void setkey(Nullable< QString > s)
Definition: srcMOHost.h:32
virtual Nullable< QString > key() const
Definition: srcMOHost.h:28
virtual Nullable< QString > name() const
Definition: srcMOHost.h:26
Definition: srcMOHost.h:14
virtual ~MOHost()
destructor: deletes this copy of the object
Definition: srcMOHost.h:56
Nullable< QString > mp_key
Definition: srcMOHost.h:23
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOHost.h:8
Q_DECLARE_METATYPE(QDomNode)
Nullable< QString > mp_name
Definition: srcMOHost.h:22