MagicSmoke  $VERSION$
MOCustomerAbstract Class Reference

#include <srcMOCustomerAbstract.h>

Inheritance diagram for MOCustomerAbstract:
MOCustomer

Public Member Functions

 MOCustomerAbstract ()
 default constructor: constructs an invalid instance of MOCustomerAbstract More...
 
 MOCustomerAbstract (const MOCustomerAbstract &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOCustomerAbstract (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOCustomerAbstract ()
 destructor: deletes this copy of the object More...
 
virtual void addaddresses (Nullable< MOAddress > a)
 
virtual void addcontacts (Nullable< MOContact > a)
 
virtual QList< MOAddressaddresses () const
 
virtual Nullable< QString > cflags () const
 
virtual void clearaddresses ()
 
virtual void clearcontacts ()
 
virtual Nullable< QString > comments () const
 
virtual QList< MOContactcontacts () const
 
virtual Nullable< QString > email () const
 
virtual Nullable< QString > firstname () const
 
virtual Nullable< qint64 > id () const
 
virtual Nullable< QString > name () const
 
MOCustomerAbstractoperator= (const MOCustomerAbstract &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setaddresses (QList< MOAddress > s)
 
virtual void setcflags (Nullable< QString > s)
 
virtual void setcomments (Nullable< QString > s)
 
virtual void setcontacts (QList< MOContact > s)
 
virtual void setemail (Nullable< QString > s)
 
virtual void setfirstname (Nullable< QString > s)
 
virtual void setid (Nullable< qint64 > s)
 
virtual void setname (Nullable< QString > s)
 
virtual void settags (Nullable< QString > s)
 
virtual void settitle (Nullable< QString > s)
 
virtual Nullable< QString > tags () const
 
virtual Nullable< QString > title () const
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="Customer")
 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...
 

Static Public Member Functions

static MOCustomerAbstract fromString (const QString &)
 create MOCustomerAbstract from XML formatted string (inverse of toString) More...
 
static MOCustomerAbstract fromXml (const QDomElement &)
 create MOCustomerAbstract from XML (inverse of toXml) More...
 

Protected Attributes

QList< MOAddressmp_addresses
 
Nullable< QString > mp_cflags
 
Nullable< QString > mp_comments
 
QList< MOContactmp_contacts
 
Nullable< QString > mp_email
 
Nullable< QString > mp_firstname
 
Nullable< qint64 > mp_id
 
Nullable< QString > mp_name
 
Nullable< QString > mp_tags
 
Nullable< QString > mp_title
 

Constructor & Destructor Documentation

MOCustomerAbstract::MOCustomerAbstract ( )
inline

default constructor: constructs an invalid instance of MOCustomerAbstract

Referenced by fromString(), and fromXml().

MOCustomerAbstract::MOCustomerAbstract ( const MOCustomerAbstract o)

copy constructor: creates a (deep) copy of the object

References mp_addresses, mp_cflags, mp_comments, mp_contacts, mp_email, mp_firstname, mp_id, mp_name, mp_tags, and mp_title.

MOCustomerAbstract::MOCustomerAbstract ( const QDomElement &  root)
explicit

special constructor: create from the XML representation, deserializing the object

References addaddresses(), addcontacts(), setcflags(), setcomments(), setemail(), setfirstname(), setid(), setname(), settags(), and settitle().

virtual MOCustomerAbstract::~MOCustomerAbstract ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual void MOCustomerAbstract::addaddresses ( Nullable< MOAddress a)
inlinevirtual

Referenced by MOCustomerAbstract().

virtual void MOCustomerAbstract::addcontacts ( Nullable< MOContact a)
inlinevirtual

Referenced by MOCustomerAbstract().

virtual QList<MOAddress> MOCustomerAbstract::addresses ( ) const
inlinevirtual
virtual Nullable<QString> MOCustomerAbstract::cflags ( ) const
inlinevirtual
virtual void MOCustomerAbstract::clearaddresses ( )
inlinevirtual
virtual void MOCustomerAbstract::clearcontacts ( )
inlinevirtual
virtual Nullable<QString> MOCustomerAbstract::comments ( ) const
inlinevirtual
virtual QList<MOContact> MOCustomerAbstract::contacts ( ) const
inlinevirtual
virtual Nullable<QString> MOCustomerAbstract::email ( ) const
inlinevirtual
virtual Nullable<QString> MOCustomerAbstract::firstname ( ) const
inlinevirtual
MOCustomerAbstract MOCustomerAbstract::fromString ( const QString &  txt)
static

create MOCustomerAbstract from XML formatted string (inverse of toString)

References MOCustomerAbstract().

MOCustomerAbstract MOCustomerAbstract::fromXml ( const QDomElement &  root)
static

create MOCustomerAbstract from XML (inverse of toXml)

References MOCustomerAbstract().

virtual Nullable<qint64> MOCustomerAbstract::id ( ) const
inlinevirtual
virtual Nullable<QString> MOCustomerAbstract::name ( ) const
inlinevirtual
MOCustomerAbstract & MOCustomerAbstract::operator= ( const MOCustomerAbstract o)

copy assignment: creates a (deep) copy of the object

References mp_addresses, mp_cflags, mp_comments, mp_contacts, mp_email, mp_firstname, mp_id, mp_name, mp_tags, and mp_title.

virtual void MOCustomerAbstract::setaddresses ( QList< MOAddress s)
inlinevirtual
virtual void MOCustomerAbstract::setcflags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOCustomerAbstract().

virtual void MOCustomerAbstract::setcomments ( Nullable< QString >  s)
inlinevirtual
virtual void MOCustomerAbstract::setcontacts ( QList< MOContact s)
inlinevirtual
virtual void MOCustomerAbstract::setemail ( Nullable< QString >  s)
inlinevirtual

Referenced by MOCustomerAbstract().

virtual void MOCustomerAbstract::setfirstname ( Nullable< QString >  s)
inlinevirtual
virtual void MOCustomerAbstract::setid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCustomerAbstract().

virtual void MOCustomerAbstract::setname ( Nullable< QString >  s)
inlinevirtual
virtual void MOCustomerAbstract::settags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOCustomerAbstract().

virtual void MOCustomerAbstract::settitle ( Nullable< QString >  s)
inlinevirtual
virtual Nullable<QString> MOCustomerAbstract::tags ( ) const
inlinevirtual
virtual Nullable<QString> MOCustomerAbstract::title ( ) const
inlinevirtual
QString MOCustomerAbstract::toString ( )

Serializes the object to XML and returns the string representation of that XML.

References toXml().

QDomElement MOCustomerAbstract::toXml ( QDomDocument &  doc,
QString  name = "Customer" 
)

Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.

Parameters
docthe DOM document node for which to generate the element
namethe name to give the generated element, per default "MOCustomerAbstract" is used

Referenced by toString(), and toXml().

void MOCustomerAbstract::toXml ( QDomDocument &  doc,
QDomElement &  r 
)

Serializes the object into the given element.

References mp_addresses, mp_cflags, mp_comments, mp_contacts, mp_email, mp_firstname, mp_id, mp_name, mp_tags, mp_title, and toXml().

Member Data Documentation

QList<MOAddress> MOCustomerAbstract::mp_addresses
protected
Nullable<QString> MOCustomerAbstract::mp_cflags
protected
Nullable<QString> MOCustomerAbstract::mp_comments
protected
QList<MOContact> MOCustomerAbstract::mp_contacts
protected
Nullable<QString> MOCustomerAbstract::mp_email
protected
Nullable<QString> MOCustomerAbstract::mp_firstname
protected
Nullable<qint64> MOCustomerAbstract::mp_id
protected
Nullable<QString> MOCustomerAbstract::mp_name
protected
Nullable<QString> MOCustomerAbstract::mp_tags
protected
Nullable<QString> MOCustomerAbstract::mp_title
protected

The documentation for this class was generated from the following files: