MagicSmoke  $VERSION$
srcMOWebSession.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_MOWebSession
4 #define WOBGEN_MOWebSession
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 
14 #include "MOCustomer"
16 {
17  Q_GADGET
19  Q_PROPERTY(Nullable<QString> sessionid READ sessionid WRITE setsessionid)
21  Q_PROPERTY(Nullable<qint64> customerid READ customerid WRITE setcustomerid)
23  Q_PROPERTY(Nullable<MOCustomer> customer READ customer WRITE setcustomer)
25  Q_PROPERTY(Nullable<qint64> timeout READ timeout WRITE settimeout)
26  protected:
27  Nullable<QString> mp_sessionid;
28  Nullable<qint64> mp_customerid;
29  Nullable<MOCustomer> mp_customer;
30  Nullable<qint64> mp_timeout;
31  public:
33  virtual Nullable<QString> sessionid()const{return mp_sessionid;}
35  virtual Nullable<qint64> customerid()const{return mp_customerid;}
37  virtual Nullable<MOCustomer> customer()const{return mp_customer;}
39  virtual Nullable<qint64> timeout()const{return mp_timeout;}
41  virtual void setsessionid(Nullable<QString> s){mp_sessionid=s;}
43  virtual void setcustomerid(Nullable<qint64> s){mp_customerid=s;}
45  virtual void setcustomer(Nullable<MOCustomer> s){mp_customer=s;}
47  virtual void settimeout(Nullable<qint64> s){mp_timeout=s;}
48  public:
50  QString toString();
54  QDomElement toXml(QDomDocument&doc,QString name="WebSession");
56  void toXml(QDomDocument&,QDomElement&);
57  public:
59  MOWebSession():WObject(){}
61  MOWebSession(const MOWebSession&);
63  MOWebSession& operator=(const MOWebSession&);
65  explicit MOWebSession(const QDomElement&);
67  static MOWebSession fromXml(const QDomElement&);
69  static MOWebSession fromString(const QString&);
71  virtual ~MOWebSession(){}
72 
73 };
77 
78 //END OF AUTOMATICALLY GENERATED FILE
79 #endif
Nullable< MOCustomer > mp_customer
Definition: srcMOWebSession.h:29
virtual void setsessionid(Nullable< QString > s)
Cookie for this session.
Definition: srcMOWebSession.h:41
Nullable< qint64 > mp_timeout
Definition: srcMOWebSession.h:30
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOWebSession.h:8
virtual ~MOWebSession()
destructor: deletes this copy of the object
Definition: srcMOWebSession.h:71
virtual void settimeout(Nullable< qint64 > s)
time at which this cookie is deleted
Definition: srcMOWebSession.h:47
virtual Nullable< qint64 > timeout() const
time at which this cookie is deleted
Definition: srcMOWebSession.h:39
MOWebSession()
default constructor: constructs an invalid instance of MOWebSession
Definition: srcMOWebSession.h:59
Nullable< QString > mp_sessionid
Definition: srcMOWebSession.h:27
virtual Nullable< QString > sessionid() const
Cookie for this session.
Definition: srcMOWebSession.h:33
virtual Nullable< MOCustomer > customer() const
customer object or null
Definition: srcMOWebSession.h:37
Nullable< qint64 > mp_customerid
Definition: srcMOWebSession.h:28
virtual void setcustomerid(Nullable< qint64 > s)
ID of the customer using this session or null.
Definition: srcMOWebSession.h:43
virtual void setcustomer(Nullable< MOCustomer > s)
customer object or null
Definition: srcMOWebSession.h:45
Definition: srcMOWebSession.h:15
Q_DECLARE_METATYPE(QDomNode)
virtual Nullable< qint64 > customerid() const
ID of the customer using this session or null.
Definition: srcMOWebSession.h:35