MagicSmoke  $VERSION$
address.h
Go to the documentation of this file.
1 //
2 // C++ Interface: MOAddress
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2009-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_MADDRESS_H
14 #define MAGICSMOKE_MADDRESS_H
15 
16 #include "MOAddressAbstract"
17 
18 #include <QMetaType>
19 
20 #ifndef MSIFACE_EXPORT
21 #define MSIFACE_EXPORT Q_DECL_IMPORT
22 #endif
23 
25 {
26  Q_GADGET
27  WOBJECT(MOAddress)
28  public:
30  QString fullAddress(QString name=QString())const;
31 
33  bool isValid()const{return !addressid().isNull() && addressid().value()>=0;}
34 };
35 
39 
40 #endif
bool isValid() const
returns true if this is a valid address stored in the DB (ie.
Definition: address.h:33
Definition: srcMOAddressAbstract.h:15
virtual Nullable< qint64 > addressid() const
Definition: srcMOAddressAbstract.h:57
Definition: address.h:24
Q_DECLARE_METATYPE(QDomNode)
#define MSIFACE_EXPORT
Definition: address.h:21