MagicSmoke  $VERSION$
MOPaymentType Class Reference

This class represents a kind of payment information. More...

#include <srcMOPaymentType.h>

Inheritance diagram for MOPaymentType:

Public Member Functions

 MOPaymentType ()
 default constructor: constructs an invalid instance of MOPaymentType More...
 
 MOPaymentType (const MOPaymentType &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOPaymentType (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOPaymentType ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< QString > dataname () const
 
virtual Nullable< QString > datapreset () const
 
virtual Nullable< QString > description () const
 
virtual Nullable< QString > flags () const
 
virtual Nullable< QString > name () const
 
MOPaymentTypeoperator= (const MOPaymentType &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setdataname (Nullable< QString > s)
 
virtual void setdatapreset (Nullable< QString > s)
 
virtual void setdescription (Nullable< QString > s)
 
virtual void setflags (Nullable< QString > s)
 
virtual void setname (Nullable< QString > s)
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="PaymentType")
 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 MOPaymentType fromString (const QString &)
 create MOPaymentType from XML formatted string (inverse of toString) More...
 
static MOPaymentType fromXml (const QDomElement &)
 create MOPaymentType from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< QString > mp_dataname
 
Nullable< QString > mp_datapreset
 
Nullable< QString > mp_description
 
Nullable< QString > mp_flags
 
Nullable< QString > mp_name
 

Detailed Description

This class represents a kind of payment information.

Constructor & Destructor Documentation

MOPaymentType::MOPaymentType ( )
inline

default constructor: constructs an invalid instance of MOPaymentType

Referenced by fromString(), and fromXml().

MOPaymentType::MOPaymentType ( const MOPaymentType o)

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

References mp_dataname, mp_datapreset, mp_description, mp_flags, and mp_name.

MOPaymentType::MOPaymentType ( const QDomElement &  root)
explicit

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

References setdataname(), setdatapreset(), setdescription(), setflags(), and setname().

virtual MOPaymentType::~MOPaymentType ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<QString> MOPaymentType::dataname ( ) const
inlinevirtual
virtual Nullable<QString> MOPaymentType::datapreset ( ) const
inlinevirtual
virtual Nullable<QString> MOPaymentType::description ( ) const
inlinevirtual
virtual Nullable<QString> MOPaymentType::flags ( ) const
inlinevirtual
MOPaymentType MOPaymentType::fromString ( const QString &  txt)
static

create MOPaymentType from XML formatted string (inverse of toString)

References MOPaymentType().

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

create MOPaymentType from XML (inverse of toXml)

References MOPaymentType().

virtual Nullable<QString> MOPaymentType::name ( ) const
inlinevirtual
MOPaymentType & MOPaymentType::operator= ( const MOPaymentType o)

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

References mp_dataname, mp_datapreset, mp_description, mp_flags, and mp_name.

virtual void MOPaymentType::setdataname ( Nullable< QString >  s)
inlinevirtual

Referenced by MOPaymentType().

virtual void MOPaymentType::setdatapreset ( Nullable< QString >  s)
inlinevirtual

Referenced by MOPaymentType().

virtual void MOPaymentType::setdescription ( Nullable< QString >  s)
inlinevirtual

Referenced by MOPaymentType().

virtual void MOPaymentType::setflags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOPaymentType().

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

Referenced by MOPaymentType().

QString MOPaymentType::toString ( )

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

References toXml().

QDomElement MOPaymentType::toXml ( QDomDocument &  doc,
QString  name = "PaymentType" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_dataname, mp_datapreset, mp_description, mp_flags, and mp_name.

Member Data Documentation

Nullable<QString> MOPaymentType::mp_dataname
protected

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

Nullable<QString> MOPaymentType::mp_datapreset
protected

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

Nullable<QString> MOPaymentType::mp_description
protected

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

Nullable<QString> MOPaymentType::mp_flags
protected

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

Nullable<QString> MOPaymentType::mp_name
protected

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


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