MagicSmoke  $VERSION$
MOVoucherAudit Class Reference

#include <srcMOVoucherAudit.h>

Inheritance diagram for MOVoucherAudit:
MOVoucher MOVoucherAbstract

Public Member Functions

 MOVoucherAudit ()
 default constructor: constructs an invalid instance of MOVoucherAudit More...
 
 MOVoucherAudit (const MOVoucherAudit &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOVoucherAudit (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOVoucherAudit ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< qint64 > audittime () const
 
virtual Nullable< QString > audittransaction () const
 
virtual Nullable< QString > audituname () const
 
virtual Nullable< QString > comment () const
 
MOVoucherAuditoperator= (const MOVoucherAudit &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setaudittime (Nullable< qint64 > s)
 
virtual void setaudittransaction (Nullable< QString > s)
 
virtual void setaudituname (Nullable< QString > s)
 
virtual void setcomment (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="VoucherAudit")
 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...
 
- Public Member Functions inherited from MOVoucher
bool isValid () const
 returns whether this is a valid voucher object (ie. More...
 
QString priceString () const
 returns the price as string More...
 
QString statusString () const
 returns the status of the voucher as string More...
 
QString validDate () const
 returns the validity date More...
 
QString valueString () const
 returns the current value as string More...
 
- Public Member Functions inherited from MOVoucherAbstract
 MOVoucherAbstract ()
 default constructor: constructs an invalid instance of MOVoucherAbstract More...
 
 MOVoucherAbstract (const MOVoucherAbstract &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOVoucherAbstract (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOVoucherAbstract ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< bool > isused () const
 The voucher has been used. There may still be value on it. More...
 
MOVoucherAbstractoperator= (const MOVoucherAbstract &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< qint64 > orderid () const
 
virtual Nullable< qint64 > price () const
 What the voucher costs in cents. More...
 
 Q_ENUMS (VoucherState)
 
virtual void setisused (Nullable< bool > s)
 The voucher has been used. There may still be value on it. More...
 
virtual void setorderid (Nullable< qint64 > s)
 
virtual void setprice (Nullable< qint64 > s)
 What the voucher costs in cents. More...
 
virtual void setstatus (Nullable< VoucherState > s)
 
virtual void settags (Nullable< QString > s)
 
virtual void setvalidtime (Nullable< qint64 > s)
 
virtual void setvalue (Nullable< qint64 > s)
 What the voucher is worth in cents. More...
 
virtual void setvoucherid (Nullable< QString > s)
 
virtual Nullable< VoucherStatestatus () const
 
virtual Nullable< QString > tags () const
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="Voucher")
 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...
 
virtual Nullable< qint64 > validtime () const
 
virtual Nullable< qint64 > value () const
 What the voucher is worth in cents. More...
 
virtual Nullable< QString > voucherid () const
 

Static Public Member Functions

static MOVoucherAudit fromString (const QString &)
 create MOVoucherAudit from XML formatted string (inverse of toString) More...
 
static MOVoucherAudit fromXml (const QDomElement &)
 create MOVoucherAudit from XML (inverse of toXml) More...
 
- Static Public Member Functions inherited from MOVoucherAbstract
static MOVoucherAbstract fromString (const QString &)
 create MOVoucherAbstract from XML formatted string (inverse of toString) More...
 
static MOVoucherAbstract fromXml (const QDomElement &)
 create MOVoucherAbstract from XML (inverse of toXml) More...
 
static VoucherState locstr2VoucherState (QString, bool *ok=0)
 Converts a localized string into the corresponding enum VoucherState value. More...
 
static VoucherState str2VoucherState (QString, bool *ok=0)
 Converts string into the corresponding enum VoucherState value. More...
 
static QString VoucherState2locstr (VoucherState)
 Converts enum VoucherState value into the corresponding localized string. More...
 
static QString VoucherState2str (VoucherState)
 Converts enum VoucherState value into the corresponding string. More...
 

Protected Attributes

Nullable< qint64 > mp_audittime
 
Nullable< QString > mp_audittransaction
 
Nullable< QString > mp_audituname
 
Nullable< QString > mp_comment
 
- Protected Attributes inherited from MOVoucherAbstract
Nullable< bool > mp_isused
 
Nullable< qint64 > mp_orderid
 
Nullable< qint64 > mp_price
 
Nullable< VoucherStatemp_status
 
Nullable< QString > mp_tags
 
Nullable< qint64 > mp_validtime
 
Nullable< qint64 > mp_value
 
Nullable< QString > mp_voucherid
 

Additional Inherited Members

- Public Types inherited from MOVoucherAbstract
enum  VoucherState { Ok =0, InvalidValue =1, InvalidPrice =2, InvalidTime =3 }
 
- Properties inherited from MOVoucherAbstract
Nullable< bool > isused
 The voucher has been used. There may still be value on it. More...
 
Nullable< qint64 > orderid
 
Nullable< qint64 > price
 What the voucher costs in cents. More...
 
Nullable< VoucherStatestatus
 
Nullable< QString > tags
 
Nullable< qint64 > validtime
 
Nullable< qint64 > value
 What the voucher is worth in cents. More...
 
Nullable< QString > voucherid
 

Constructor & Destructor Documentation

MOVoucherAudit::MOVoucherAudit ( )
inline

default constructor: constructs an invalid instance of MOVoucherAudit

Referenced by fromString(), and fromXml().

MOVoucherAudit::MOVoucherAudit ( const MOVoucherAudit o)

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

References mp_audittime, mp_audittransaction, mp_audituname, and mp_comment.

MOVoucherAudit::MOVoucherAudit ( const QDomElement &  root)
explicit

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

References setaudittime(), setaudittransaction(), setaudituname(), and setcomment().

virtual MOVoucherAudit::~MOVoucherAudit ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<qint64> MOVoucherAudit::audittime ( ) const
inlinevirtual
virtual Nullable<QString> MOVoucherAudit::audittransaction ( ) const
inlinevirtual
virtual Nullable<QString> MOVoucherAudit::audituname ( ) const
inlinevirtual
virtual Nullable<QString> MOVoucherAudit::comment ( ) const
inlinevirtual
MOVoucherAudit MOVoucherAudit::fromString ( const QString &  txt)
static

create MOVoucherAudit from XML formatted string (inverse of toString)

References MOVoucherAudit().

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

create MOVoucherAudit from XML (inverse of toXml)

References MOVoucherAudit().

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

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

References mp_audittime, mp_audittransaction, mp_audituname, mp_comment, and MOVoucherAbstract::operator=().

virtual void MOVoucherAudit::setaudittime ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOVoucherAudit().

virtual void MOVoucherAudit::setaudittransaction ( Nullable< QString >  s)
inlinevirtual

Referenced by MOVoucherAudit().

virtual void MOVoucherAudit::setaudituname ( Nullable< QString >  s)
inlinevirtual

Referenced by MOVoucherAudit().

virtual void MOVoucherAudit::setcomment ( Nullable< QString >  s)
inlinevirtual

Referenced by MOVoucherAudit().

QString MOVoucherAudit::toString ( )

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

References toXml().

QDomElement MOVoucherAudit::toXml ( QDomDocument &  doc,
QString  name = "VoucherAudit" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_audittime, mp_audittransaction, mp_audituname, mp_comment, and MOVoucherAbstract::toXml().

Member Data Documentation

Nullable<qint64> MOVoucherAudit::mp_audittime
protected

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

Nullable<QString> MOVoucherAudit::mp_audittransaction
protected

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

Nullable<QString> MOVoucherAudit::mp_audituname
protected

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

Nullable<QString> MOVoucherAudit::mp_comment
protected

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


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