MagicSmoke  $VERSION$
srcMOCartVoucher.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_MOCartVoucher
4 #define WOBGEN_MOCartVoucher
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
18  public:
19  Q_ENUMS(ValidationState);
23  Ok=0,
25  InvalidValue=1,
27  InvalidPrice=2
28  };
30  static ValidationState str2ValidationState(QString,bool*ok=0);
32  static QString ValidationState2str(ValidationState);
34  static ValidationState locstr2ValidationState(QString,bool*ok=0);
36  static QString ValidationState2locstr(ValidationState);
38  Q_PROPERTY(Nullable<qint64> cartlineid READ cartlineid WRITE setcartlineid)
40  Q_PROPERTY(Nullable<qint64> amount READ amount WRITE setamount)
42  Q_PROPERTY(Nullable<qint64> value READ value WRITE setvalue)
44  Q_PROPERTY(Nullable<qint64> price READ price WRITE setprice)
46  Q_PROPERTY(Nullable<ValidationState> status READ status WRITE setstatus)
48  Q_PROPERTY(Nullable<QString> cartid READ cartid WRITE setcartid)
49  protected:
50  Nullable<qint64> mp_cartlineid;
51  Nullable<qint64> mp_amount;
52  Nullable<qint64> mp_value;
53  Nullable<qint64> mp_price;
54  Nullable<ValidationState> mp_status;
55  Nullable<QString> mp_cartid;
56  public:
58  virtual Nullable<qint64> cartlineid()const{return mp_cartlineid;}
60  virtual Nullable<qint64> amount()const{return mp_amount;}
62  virtual Nullable<qint64> value()const{return mp_value;}
64  virtual Nullable<qint64> price()const{return mp_price;}
66  virtual Nullable<ValidationState> status()const{return mp_status;}
68  virtual Nullable<QString> cartid()const{return mp_cartid;}
70  virtual void setcartlineid(Nullable<qint64> s){mp_cartlineid=s;}
72  virtual void setamount(Nullable<qint64> s){mp_amount=s;}
74  virtual void setvalue(Nullable<qint64> s){mp_value=s;}
76  virtual void setprice(Nullable<qint64> s){mp_price=s;}
78  virtual void setstatus(Nullable<ValidationState> s){mp_status=s;}
80  virtual void setcartid(Nullable<QString> s){mp_cartid=s;}
81  public:
83  QString toString();
87  QDomElement toXml(QDomDocument&doc,QString name="CartVoucher");
89  void toXml(QDomDocument&,QDomElement&);
90  public:
92  MOCartVoucher():WObject(){}
96  MOCartVoucher& operator=(const MOCartVoucher&);
98  explicit MOCartVoucher(const QDomElement&);
100  static MOCartVoucher fromXml(const QDomElement&);
102  static MOCartVoucher fromString(const QString&);
104  virtual ~MOCartVoucher(){}
105 
106 };
108 Q_DECLARE_METATYPE(QList<MOCartVoucher::ValidationState>)
112 
113 //END OF AUTOMATICALLY GENERATED FILE
114 #endif
virtual Nullable< qint64 > price() const
Definition: srcMOCartVoucher.h:64
virtual void setamount(Nullable< qint64 > s)
Definition: srcMOCartVoucher.h:72
virtual void setprice(Nullable< qint64 > s)
Definition: srcMOCartVoucher.h:76
virtual Nullable< QString > cartid() const
optional property that is used by the web user interface to identify the cart that is handled ...
Definition: srcMOCartVoucher.h:68
virtual void setcartlineid(Nullable< qint64 > s)
optional property that can be used by the calling process to distinguish lines in the cart...
Definition: srcMOCartVoucher.h:70
MOCartVoucher()
default constructor: constructs an invalid instance of MOCartVoucher
Definition: srcMOCartVoucher.h:92
virtual ~MOCartVoucher()
destructor: deletes this copy of the object
Definition: srcMOCartVoucher.h:104
virtual void setvalue(Nullable< qint64 > s)
Definition: srcMOCartVoucher.h:74
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOCartVoucher.h:8
virtual void setstatus(Nullable< ValidationState > s)
Definition: srcMOCartVoucher.h:78
Encapsulates vouchers as they are stored in the cart. Used by the client to tell the server about new...
Definition: srcMOCartVoucher.h:15
virtual Nullable< qint64 > amount() const
Definition: srcMOCartVoucher.h:60
virtual void setcartid(Nullable< QString > s)
optional property that is used by the web user interface to identify the cart that is handled ...
Definition: srcMOCartVoucher.h:80
virtual Nullable< ValidationState > status() const
Definition: srcMOCartVoucher.h:66
ValidationState
Definition: srcMOCartVoucher.h:21
Q_DECLARE_METATYPE(QDomNode)
virtual Nullable< qint64 > value() const
Definition: srcMOCartVoucher.h:62