MagicSmoke  $VERSION$
MOShipping Class Reference

This class encapsulates shipping types. More...

#include <srcMOShipping.h>

Inheritance diagram for MOShipping:

Public Member Functions

 MOShipping ()
 default constructor: constructs an invalid instance of MOShipping More...
 
 MOShipping (const MOShipping &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOShipping (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOShipping ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< bool > canuse () const
 
virtual Nullable< qint64 > cost () const
 
virtual Nullable< QString > description () const
 
virtual Nullable< QString > flags () const
 
MOShippingoperator= (const MOShipping &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setcanuse (Nullable< bool > s)
 
virtual void setcost (Nullable< qint64 > s)
 
virtual void setdescription (Nullable< QString > s)
 
virtual void setflags (Nullable< QString > s)
 
virtual void setshipid (Nullable< qint64 > s)
 
virtual Nullable< qint64 > shipid () const
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="Shipping")
 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 MOShipping fromString (const QString &)
 create MOShipping from XML formatted string (inverse of toString) More...
 
static MOShipping fromXml (const QDomElement &)
 create MOShipping from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< bool > mp_canuse
 
Nullable< qint64 > mp_cost
 
Nullable< QString > mp_description
 
Nullable< QString > mp_flags
 
Nullable< qint64 > mp_shipid
 

Detailed Description

This class encapsulates shipping types.

Constructor & Destructor Documentation

MOShipping::MOShipping ( )
inline

default constructor: constructs an invalid instance of MOShipping

Referenced by fromString(), and fromXml().

MOShipping::MOShipping ( const MOShipping o)

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

References mp_canuse, mp_cost, mp_description, mp_flags, and mp_shipid.

MOShipping::MOShipping ( const QDomElement &  root)
explicit

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

References setcanuse(), setcost(), setdescription(), setflags(), and setshipid().

virtual MOShipping::~MOShipping ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<bool> MOShipping::canuse ( ) const
inlinevirtual
virtual Nullable<qint64> MOShipping::cost ( ) const
inlinevirtual
virtual Nullable<QString> MOShipping::description ( ) const
inlinevirtual
virtual Nullable<QString> MOShipping::flags ( ) const
inlinevirtual
MOShipping MOShipping::fromString ( const QString &  txt)
static

create MOShipping from XML formatted string (inverse of toString)

References MOShipping().

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

create MOShipping from XML (inverse of toXml)

References MOShipping().

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

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

References mp_canuse, mp_cost, mp_description, mp_flags, and mp_shipid.

virtual void MOShipping::setcanuse ( Nullable< bool >  s)
inlinevirtual

Referenced by MOShipping().

virtual void MOShipping::setcost ( Nullable< qint64 >  s)
inlinevirtual
virtual void MOShipping::setdescription ( Nullable< QString >  s)
inlinevirtual

Referenced by MOShipping().

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

Referenced by MOShipping().

virtual void MOShipping::setshipid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOShipping().

virtual Nullable<qint64> MOShipping::shipid ( ) const
inlinevirtual
QString MOShipping::toString ( )

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

References toXml().

QDomElement MOShipping::toXml ( QDomDocument &  doc,
QString  name = "Shipping" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_canuse, mp_cost, mp_description, mp_flags, and mp_shipid.

Member Data Documentation

Nullable<bool> MOShipping::mp_canuse
protected

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

Nullable<qint64> MOShipping::mp_cost
protected

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

Nullable<QString> MOShipping::mp_description
protected

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

Nullable<QString> MOShipping::mp_flags
protected

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

Nullable<qint64> MOShipping::mp_shipid
protected

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


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