MagicSmoke  $VERSION$
MOContact Class Reference

#include <srcMOContact.h>

Inheritance diagram for MOContact:

Public Member Functions

 MOContact ()
 default constructor: constructs an invalid instance of MOContact More...
 
 MOContact (const MOContact &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOContact (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOContact ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< QString > contact () const
 
virtual Nullable< qint64 > contactid () const
 
virtual Nullable< MOContactTypecontacttype () const
 
virtual Nullable< qint64 > contacttypeid () const
 
virtual Nullable< qint64 > customerid () const
 
MOContactoperator= (const MOContact &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setcontact (Nullable< QString > s)
 
virtual void setcontactid (Nullable< qint64 > s)
 
virtual void setcontacttype (Nullable< MOContactType > s)
 
virtual void setcontacttypeid (Nullable< qint64 > s)
 
virtual void setcustomerid (Nullable< qint64 > s)
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="Contact")
 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 MOContact fromString (const QString &)
 create MOContact from XML formatted string (inverse of toString) More...
 
static MOContact fromXml (const QDomElement &)
 create MOContact from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< QString > mp_contact
 
Nullable< qint64 > mp_contactid
 
Nullable< MOContactTypemp_contacttype
 
Nullable< qint64 > mp_contacttypeid
 
Nullable< qint64 > mp_customerid
 

Constructor & Destructor Documentation

MOContact::MOContact ( )
inline

default constructor: constructs an invalid instance of MOContact

Referenced by fromString(), and fromXml().

MOContact::MOContact ( const MOContact o)

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

References mp_contact, mp_contactid, mp_contacttype, mp_contacttypeid, and mp_customerid.

MOContact::MOContact ( const QDomElement &  root)
explicit

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

References setcontact(), setcontactid(), setcontacttype(), setcontacttypeid(), and setcustomerid().

virtual MOContact::~MOContact ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<QString> MOContact::contact ( ) const
inlinevirtual
virtual Nullable<qint64> MOContact::contactid ( ) const
inlinevirtual
virtual Nullable<MOContactType> MOContact::contacttype ( ) const
inlinevirtual
virtual Nullable<qint64> MOContact::contacttypeid ( ) const
inlinevirtual
virtual Nullable<qint64> MOContact::customerid ( ) const
inlinevirtual
MOContact MOContact::fromString ( const QString &  txt)
static

create MOContact from XML formatted string (inverse of toString)

References MOContact().

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

create MOContact from XML (inverse of toXml)

References MOContact().

MOContact & MOContact::operator= ( const MOContact o)

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

References mp_contact, mp_contactid, mp_contacttype, mp_contacttypeid, and mp_customerid.

virtual void MOContact::setcontact ( Nullable< QString >  s)
inlinevirtual
virtual void MOContact::setcontactid ( Nullable< qint64 >  s)
inlinevirtual
virtual void MOContact::setcontacttype ( Nullable< MOContactType s)
inlinevirtual

Referenced by MOContact().

virtual void MOContact::setcontacttypeid ( Nullable< qint64 >  s)
inlinevirtual
virtual void MOContact::setcustomerid ( Nullable< qint64 >  s)
inlinevirtual
QString MOContact::toString ( )

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

References toXml().

QDomElement MOContact::toXml ( QDomDocument &  doc,
QString  name = "Contact" 
)

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 "MOContact" is used

Referenced by toString().

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

Serializes the object into the given element.

References mp_contact, mp_contactid, mp_contacttype, mp_contacttypeid, and mp_customerid.

Member Data Documentation

Nullable<QString> MOContact::mp_contact
protected

Referenced by MOContact(), operator=(), and toXml().

Nullable<qint64> MOContact::mp_contactid
protected

Referenced by MOContact(), operator=(), and toXml().

Nullable<MOContactType> MOContact::mp_contacttype
protected

Referenced by MOContact(), operator=(), and toXml().

Nullable<qint64> MOContact::mp_contacttypeid
protected

Referenced by MOContact(), operator=(), and toXml().

Nullable<qint64> MOContact::mp_customerid
protected

Referenced by MOContact(), operator=(), and toXml().


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