MagicSmoke  $VERSION$
customer.h
Go to the documentation of this file.
1 //
2 // C++ Interface: MOCustomer
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2010-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_MOCUSTOMER_H
14 #define MAGICSMOKE_MOCUSTOMER_H
15 
16 #include "MOCustomerAbstract"
17 
18 #ifndef MSIFACE_EXPORT
19 #define MSIFACE_EXPORT Q_DECL_IMPORT
20 #endif
21 
22 class MOCustomerInfo;
23 
25 {
26  Q_GADGET
27  WOBJECT(MOCustomer)
28  public:
30  MOCustomer(qint64);
32  MOCustomer(const MOCustomerInfo&);
34  bool isValid(){return !id().isNull();}
35 
37  Nullable<qint64> customerid()const{return id();}
38 
40  QString address(int i=0);
41 
43  QString fullName()const;
44 
45 };
46 
50 
51 #endif
Definition: customer.h:24
Definition: customerinfo.h:22
bool isValid()
returns whether the customer is valid
Definition: customer.h:34
Nullable< qint64 > customerid() const
alias for id()
Definition: customer.h:37
#define MSIFACE_EXPORT
Definition: customer.h:19
virtual Nullable< qint64 > id() const
Definition: srcMOCustomerAbstract.h:52
Definition: srcMOCustomerAbstract.h:16
Q_DECLARE_METATYPE(QDomNode)