MagicSmoke
$VERSION$
|
#include <address.h>
Public Member Functions | |
QString | fullAddress (QString name=QString()) const |
returns the full address, if name is given and the address does not have its own name, it is included as top line More... | |
bool | isValid () const |
returns true if this is a valid address stored in the DB (ie. More... | |
Public Member Functions inherited from MOAddressAbstract | |
MOAddressAbstract () | |
default constructor: constructs an invalid instance of MOAddressAbstract More... | |
MOAddressAbstract (const MOAddressAbstract &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOAddressAbstract (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOAddressAbstract () |
destructor: deletes this copy of the object More... | |
virtual Nullable< QString > | addr1 () const |
virtual Nullable< QString > | addr2 () const |
virtual Nullable< qint64 > | addressid () const |
virtual Nullable< QString > | city () const |
virtual Nullable< MOCountry > | country () const |
virtual Nullable< QString > | countryid () const |
virtual Nullable< qint64 > | customerid () const |
virtual Nullable< bool > | isdeleted () const |
virtual Nullable< qint64 > | lastused () const |
virtual Nullable< QString > | name () const |
MOAddressAbstract & | operator= (const MOAddressAbstract &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual void | setaddr1 (Nullable< QString > s) |
virtual void | setaddr2 (Nullable< QString > s) |
virtual void | setaddressid (Nullable< qint64 > s) |
virtual void | setcity (Nullable< QString > s) |
virtual void | setcountry (Nullable< MOCountry > s) |
virtual void | setcountryid (Nullable< QString > s) |
virtual void | setcustomerid (Nullable< qint64 > s) |
virtual void | setisdeleted (Nullable< bool > s) |
virtual void | setlastused (Nullable< qint64 > s) |
virtual void | setname (Nullable< QString > s) |
virtual void | setstate (Nullable< QString > s) |
virtual void | setzipcode (Nullable< QString > s) |
virtual Nullable< QString > | state () const |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="Address") |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself. More... | |
void | toXml (QDomDocument &, QDomElement &) |
Serializes the object into the given element. More... | |
virtual Nullable< QString > | zipcode () const |
Additional Inherited Members | |
Static Public Member Functions inherited from MOAddressAbstract | |
static MOAddressAbstract | fromString (const QString &) |
create MOAddressAbstract from XML formatted string (inverse of toString) More... | |
static MOAddressAbstract | fromXml (const QDomElement &) |
create MOAddressAbstract from XML (inverse of toXml) More... | |
Protected Attributes inherited from MOAddressAbstract | |
Nullable< QString > | mp_addr1 |
Nullable< QString > | mp_addr2 |
Nullable< qint64 > | mp_addressid |
Nullable< QString > | mp_city |
Nullable< MOCountry > | mp_country |
Nullable< QString > | mp_countryid |
Nullable< qint64 > | mp_customerid |
Nullable< bool > | mp_isdeleted |
Nullable< qint64 > | mp_lastused |
Nullable< QString > | mp_name |
Nullable< QString > | mp_state |
Nullable< QString > | mp_zipcode |
QString MOAddress::fullAddress | ( | QString | name = QString() | ) | const |
returns the full address, if name is given and the address does not have its own name, it is included as top line
References MOAddressAbstract::addr1(), MOAddressAbstract::addr2(), MOAddressAbstract::city(), MOAddressAbstract::country(), MOAddressAbstract::name(), MOAddressAbstract::state(), and MOAddressAbstract::zipcode().
|
inline |
returns true if this is a valid address stored in the DB (ie.
it has an address ID)
References MOAddressAbstract::addressid().
Referenced by MAddressDialog::MAddressDialog().