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