MagicSmoke  $VERSION$
MOItemInfo Class Reference

used for basic info about items More...

#include <srcMOItemInfo.h>

Inheritance diagram for MOItemInfo:
MOItemAudit

Public Member Functions

 MOItemInfo ()
 default constructor: constructs an invalid instance of MOItemInfo More...
 
 MOItemInfo (const MOItemInfo &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOItemInfo (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOItemInfo ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< qint64 > amount () const
 
virtual Nullable< qint64 > itemid () const
 
MOItemInfooperator= (const MOItemInfo &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< qint64 > orderid () const
 
virtual Nullable< qint64 > productid () const
 
virtual Nullable< QString > productname () const
 
virtual void setamount (Nullable< qint64 > s)
 
virtual void setitemid (Nullable< qint64 > s)
 
virtual void setorderid (Nullable< qint64 > s)
 
virtual void setproductid (Nullable< qint64 > s)
 
virtual void setproductname (Nullable< QString > s)
 
virtual void settotalprice (Nullable< qint64 > s)
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
virtual Nullable< qint64 > totalprice () const
 
QDomElement toXml (QDomDocument &doc, QString name="ItemInfo")
 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 MOItemInfo fromString (const QString &)
 create MOItemInfo from XML formatted string (inverse of toString) More...
 
static MOItemInfo fromXml (const QDomElement &)
 create MOItemInfo from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< qint64 > mp_amount
 
Nullable< qint64 > mp_itemid
 
Nullable< qint64 > mp_orderid
 
Nullable< qint64 > mp_productid
 
Nullable< QString > mp_productname
 
Nullable< qint64 > mp_totalprice
 

Detailed Description

used for basic info about items

Constructor & Destructor Documentation

MOItemInfo::MOItemInfo ( )
inline

default constructor: constructs an invalid instance of MOItemInfo

Referenced by fromString(), and fromXml().

MOItemInfo::MOItemInfo ( const MOItemInfo o)

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

References mp_amount, mp_itemid, mp_orderid, mp_productid, mp_productname, and mp_totalprice.

MOItemInfo::MOItemInfo ( const QDomElement &  root)
explicit

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

References setamount(), setitemid(), setorderid(), setproductid(), setproductname(), and settotalprice().

virtual MOItemInfo::~MOItemInfo ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<qint64> MOItemInfo::amount ( ) const
inlinevirtual
MOItemInfo MOItemInfo::fromString ( const QString &  txt)
static

create MOItemInfo from XML formatted string (inverse of toString)

References MOItemInfo().

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

create MOItemInfo from XML (inverse of toXml)

References MOItemInfo().

virtual Nullable<qint64> MOItemInfo::itemid ( ) const
inlinevirtual
MOItemInfo & MOItemInfo::operator= ( const MOItemInfo o)

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

References mp_amount, mp_itemid, mp_orderid, mp_productid, mp_productname, and mp_totalprice.

Referenced by MOItemAudit::operator=().

virtual Nullable<qint64> MOItemInfo::orderid ( ) const
inlinevirtual
virtual Nullable<qint64> MOItemInfo::productid ( ) const
inlinevirtual
virtual Nullable<QString> MOItemInfo::productname ( ) const
inlinevirtual
virtual void MOItemInfo::setamount ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOItemInfo().

virtual void MOItemInfo::setitemid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOItemInfo().

virtual void MOItemInfo::setorderid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOItemInfo().

virtual void MOItemInfo::setproductid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOItemInfo().

virtual void MOItemInfo::setproductname ( Nullable< QString >  s)
inlinevirtual

Referenced by MOItemInfo().

virtual void MOItemInfo::settotalprice ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOItemInfo().

QString MOItemInfo::toString ( )

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

References toXml().

virtual Nullable<qint64> MOItemInfo::totalprice ( ) const
inlinevirtual
QDomElement MOItemInfo::toXml ( QDomDocument &  doc,
QString  name = "ItemInfo" 
)

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

Referenced by toString(), and MOItemAudit::toXml().

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

Serializes the object into the given element.

References mp_amount, mp_itemid, mp_orderid, mp_productid, mp_productname, and mp_totalprice.

Member Data Documentation

Nullable<qint64> MOItemInfo::mp_amount
protected

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

Nullable<qint64> MOItemInfo::mp_itemid
protected

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

Nullable<qint64> MOItemInfo::mp_orderid
protected

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

Nullable<qint64> MOItemInfo::mp_productid
protected

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

Nullable<QString> MOItemInfo::mp_productname
protected

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

Nullable<qint64> MOItemInfo::mp_totalprice
protected

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


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