MagicSmoke  $VERSION$
srcMOShipping.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_MOShipping
4 #define WOBGEN_MOShipping
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<qint64> shipid READ shipid WRITE setshipid)
21  Q_PROPERTY(Nullable<qint64> cost READ cost WRITE setcost)
23  Q_PROPERTY(Nullable<QString> flags READ flags WRITE setflags)
25  Q_PROPERTY(Nullable<bool> canuse READ canuse WRITE setcanuse)
27  Q_PROPERTY(Nullable<QString> description READ description WRITE setdescription)
28  protected:
29  Nullable<qint64> mp_shipid;
30  Nullable<qint64> mp_cost;
31  Nullable<QString> mp_flags;
32  Nullable<bool> mp_canuse;
33  Nullable<QString> mp_description;
34  public:
36  virtual Nullable<qint64> shipid()const{return mp_shipid;}
38  virtual Nullable<qint64> cost()const{return mp_cost;}
40  virtual Nullable<QString> flags()const{return mp_flags;}
42  virtual Nullable<bool> canuse()const{return mp_canuse;}
44  virtual Nullable<QString> description()const{return mp_description;}
46  virtual void setshipid(Nullable<qint64> s){mp_shipid=s;}
48  virtual void setcost(Nullable<qint64> s){mp_cost=s;}
50  virtual void setflags(Nullable<QString> s){mp_flags=s;}
52  virtual void setcanuse(Nullable<bool> s){mp_canuse=s;}
54  virtual void setdescription(Nullable<QString> s){mp_description=s;}
55  public:
57  QString toString();
61  QDomElement toXml(QDomDocument&doc,QString name="Shipping");
63  void toXml(QDomDocument&,QDomElement&);
64  public:
66  MOShipping():WObject(){}
68  MOShipping(const MOShipping&);
70  MOShipping& operator=(const MOShipping&);
72  explicit MOShipping(const QDomElement&);
74  static MOShipping fromXml(const QDomElement&);
76  static MOShipping fromString(const QString&);
78  virtual ~MOShipping(){}
79 
80 };
84 
85 //END OF AUTOMATICALLY GENERATED FILE
86 #endif
virtual Nullable< QString > flags() const
Definition: srcMOShipping.h:40
Nullable< bool > mp_canuse
Definition: srcMOShipping.h:32
Nullable< qint64 > mp_cost
Definition: srcMOShipping.h:30
virtual Nullable< bool > canuse() const
Definition: srcMOShipping.h:42
virtual void setflags(Nullable< QString > s)
Definition: srcMOShipping.h:50
virtual ~MOShipping()
destructor: deletes this copy of the object
Definition: srcMOShipping.h:78
virtual void setcost(Nullable< qint64 > s)
Definition: srcMOShipping.h:48
Nullable< qint64 > mp_shipid
Definition: srcMOShipping.h:29
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOShipping.h:8
virtual void setcanuse(Nullable< bool > s)
Definition: srcMOShipping.h:52
virtual Nullable< qint64 > cost() const
Definition: srcMOShipping.h:38
virtual Nullable< QString > description() const
Definition: srcMOShipping.h:44
Nullable< QString > mp_description
Definition: srcMOShipping.h:33
virtual void setshipid(Nullable< qint64 > s)
Definition: srcMOShipping.h:46
MOShipping()
default constructor: constructs an invalid instance of MOShipping
Definition: srcMOShipping.h:66
Q_DECLARE_METATYPE(QDomNode)
virtual Nullable< qint64 > shipid() const
Definition: srcMOShipping.h:36
Nullable< QString > mp_flags
Definition: srcMOShipping.h:31
virtual void setdescription(Nullable< QString > s)
Definition: srcMOShipping.h:54
This class encapsulates shipping types.
Definition: srcMOShipping.h:15