MagicSmoke  $VERSION$
srcMOCouponInfo.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_MOCouponInfo
4 #define WOBGEN_MOCouponInfo
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> couponid READ couponid WRITE setcouponid)
21  Q_PROPERTY(Nullable<QString> description READ description WRITE setdescription)
23  Q_PROPERTY(Nullable<qint64> validfrom READ validfrom WRITE setvalidfrom)
25  Q_PROPERTY(Nullable<qint64> validtill READ validtill WRITE setvalidtill)
27  Q_PROPERTY(Nullable<QString> flags READ flags WRITE setflags)
28  protected:
29  Nullable<QString> mp_couponid;
30  Nullable<QString> mp_description;
31  Nullable<qint64> mp_validfrom;
32  Nullable<qint64> mp_validtill;
33  Nullable<QString> mp_flags;
34  public:
36  virtual Nullable<QString> couponid()const{return mp_couponid;}
38  virtual Nullable<QString> description()const{return mp_description;}
40  virtual Nullable<qint64> validfrom()const{return mp_validfrom;}
42  virtual Nullable<qint64> validtill()const{return mp_validtill;}
44  virtual Nullable<QString> flags()const{return mp_flags;}
46  virtual void setcouponid(Nullable<QString> s){mp_couponid=s;}
48  virtual void setdescription(Nullable<QString> s){mp_description=s;}
50  virtual void setvalidfrom(Nullable<qint64> s){mp_validfrom=s;}
52  virtual void setvalidtill(Nullable<qint64> s){mp_validtill=s;}
54  virtual void setflags(Nullable<QString> s){mp_flags=s;}
55  public:
57  QString toString();
61  QDomElement toXml(QDomDocument&doc,QString name="CouponInfo");
63  void toXml(QDomDocument&,QDomElement&);
64  public:
66  MOCouponInfo():WObject(){}
68  MOCouponInfo(const MOCouponInfo&);
70  MOCouponInfo& operator=(const MOCouponInfo&);
72  explicit MOCouponInfo(const QDomElement&);
74  static MOCouponInfo fromXml(const QDomElement&);
76  static MOCouponInfo fromString(const QString&);
78  virtual ~MOCouponInfo(){}
79 
80 };
84 
85 //END OF AUTOMATICALLY GENERATED FILE
86 #endif
Nullable< qint64 > mp_validfrom
Definition: srcMOCouponInfo.h:31
MOCouponInfo()
default constructor: constructs an invalid instance of MOCouponInfo
Definition: srcMOCouponInfo.h:66
virtual Nullable< qint64 > validtill() const
Definition: srcMOCouponInfo.h:42
virtual void setvalidfrom(Nullable< qint64 > s)
Definition: srcMOCouponInfo.h:50
virtual void setvalidtill(Nullable< qint64 > s)
Definition: srcMOCouponInfo.h:52
virtual Nullable< QString > description() const
Definition: srcMOCouponInfo.h:38
virtual void setflags(Nullable< QString > s)
Definition: srcMOCouponInfo.h:54
Nullable< QString > mp_flags
Definition: srcMOCouponInfo.h:33
This class represents the bare minimum info of a coupon.
Definition: srcMOCouponInfo.h:15
Nullable< QString > mp_couponid
Definition: srcMOCouponInfo.h:29
virtual ~MOCouponInfo()
destructor: deletes this copy of the object
Definition: srcMOCouponInfo.h:78
Q_DECLARE_METATYPE(QDomNode)
Nullable< QString > mp_description
Definition: srcMOCouponInfo.h:30
virtual Nullable< QString > couponid() const
Definition: srcMOCouponInfo.h:36
virtual Nullable< QString > flags() const
Definition: srcMOCouponInfo.h:44
virtual Nullable< qint64 > validfrom() const
Definition: srcMOCouponInfo.h:40
virtual void setdescription(Nullable< QString > s)
Definition: srcMOCouponInfo.h:48
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOCouponInfo.h:8
virtual void setcouponid(Nullable< QString > s)
Definition: srcMOCouponInfo.h:46
Nullable< qint64 > mp_validtill
Definition: srcMOCouponInfo.h:32