MagicSmoke  $VERSION$
MOOrderAudit Class Reference

This class represents the audit information about an order. More...

#include <srcMOOrderAudit.h>

Inheritance diagram for MOOrderAudit:

Public Types

enum  OrderState {
  Placed =0, Sent =1, Sold =1, Cancelled =2,
  Reserved =4, Closed =128
}
 Status the order is in right now. More...
 

Public Member Functions

 MOOrderAudit ()
 default constructor: constructs an invalid instance of MOOrderAudit More...
 
 MOOrderAudit (const MOOrderAudit &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOOrderAudit (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOOrderAudit ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< qint64 > amountpaid () const
 amount that has been paid for this order More...
 
virtual Nullable< qint64 > audittime () const
 
virtual Nullable< QString > audittransaction () const
 
virtual Nullable< QString > audituname () const
 
virtual Nullable< qint64 > customerid () const
 
MOOrderAuditoperator= (const MOOrderAudit &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< qint64 > orderid () const
 
virtual Nullable< qint64 > ordertime () const
 
virtual Nullable< QString > paydata () const
 
virtual Nullable< QString > paytype () const
 
 Q_ENUMS (OrderState)
 
virtual Nullable< qint64 > senttime () const
 
virtual void setamountpaid (Nullable< qint64 > s)
 amount that has been paid for this order More...
 
virtual void setaudittime (Nullable< qint64 > s)
 
virtual void setaudittransaction (Nullable< QString > s)
 
virtual void setaudituname (Nullable< QString > s)
 
virtual void setcustomerid (Nullable< qint64 > s)
 
virtual void setorderid (Nullable< qint64 > s)
 
virtual void setordertime (Nullable< qint64 > s)
 
virtual void setpaydata (Nullable< QString > s)
 
virtual void setpaytype (Nullable< QString > s)
 
virtual void setsenttime (Nullable< qint64 > s)
 
virtual void setshippingcosts (Nullable< qint64 > s)
 costs for shipping More...
 
virtual void setsoldby (Nullable< QString > s)
 
virtual void setstatus (Nullable< OrderState > s)
 
virtual Nullable< qint64 > shippingcosts () const
 costs for shipping More...
 
virtual Nullable< QString > soldby () const
 
virtual Nullable< OrderStatestatus () const
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="OrderAudit")
 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 MOOrderAudit fromString (const QString &)
 create MOOrderAudit from XML formatted string (inverse of toString) More...
 
static MOOrderAudit fromXml (const QDomElement &)
 create MOOrderAudit from XML (inverse of toXml) More...
 
static OrderState locstr2OrderState (QString, bool *ok=0)
 Converts a localized string into the corresponding enum OrderState value. More...
 
static QString OrderState2locstr (OrderState)
 Converts enum OrderState value into the corresponding localized string. More...
 
static QString OrderState2str (OrderState)
 Converts enum OrderState value into the corresponding string. More...
 
static OrderState str2OrderState (QString, bool *ok=0)
 Converts string into the corresponding enum OrderState value. More...
 

Protected Attributes

Nullable< qint64 > mp_amountpaid
 
Nullable< qint64 > mp_audittime
 
Nullable< QString > mp_audittransaction
 
Nullable< QString > mp_audituname
 
Nullable< qint64 > mp_customerid
 
Nullable< qint64 > mp_orderid
 
Nullable< qint64 > mp_ordertime
 
Nullable< QString > mp_paydata
 
Nullable< QString > mp_paytype
 
Nullable< qint64 > mp_senttime
 
Nullable< qint64 > mp_shippingcosts
 
Nullable< QString > mp_soldby
 
Nullable< OrderStatemp_status
 

Properties

Nullable< qint64 > amountpaid
 amount that has been paid for this order More...
 
Nullable< qint64 > audittime
 
Nullable< QString > audittransaction
 
Nullable< QString > audituname
 
Nullable< qint64 > customerid
 
Nullable< qint64 > orderid
 
Nullable< qint64 > ordertime
 
Nullable< QString > paydata
 
Nullable< QString > paytype
 
Nullable< qint64 > senttime
 
Nullable< qint64 > shippingcosts
 costs for shipping More...
 
Nullable< QString > soldby
 
Nullable< OrderStatestatus
 

Detailed Description

This class represents the audit information about an order.

Member Enumeration Documentation

Status the order is in right now.

Enumerator
Placed 

The order has been placed, but not acted upon yet.

Sent 

The order has been sent out or handed to the customer.

Sold 

Alias for Sent. Semantically: it is sold if it has been sent and paid.

Cancelled 

The order has been cancelled, if anything has been paid, it must be paid back.

Reserved 

The order is just a reservation for a limited time, application logic must determine the timeout.

Closed 

The order is closed out of the system - the payment status is ignored from now on. Currently not used.

Constructor & Destructor Documentation

MOOrderAudit::MOOrderAudit ( )
inline

default constructor: constructs an invalid instance of MOOrderAudit

Referenced by fromString(), and fromXml().

MOOrderAudit::MOOrderAudit ( const MOOrderAudit o)
MOOrderAudit::MOOrderAudit ( const QDomElement &  root)
explicit
virtual MOOrderAudit::~MOOrderAudit ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<qint64> MOOrderAudit::amountpaid ( ) const
inlinevirtual

amount that has been paid for this order

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

create MOOrderAudit from XML formatted string (inverse of toString)

References MOOrderAudit().

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

create MOOrderAudit from XML (inverse of toXml)

References MOOrderAudit().

MOOrderAudit::OrderState MOOrderAudit::locstr2OrderState ( QString  s,
bool *  ok = 0 
)
static

Converts a localized string into the corresponding enum OrderState value.

References Cancelled, Closed, Placed, Reserved, Sent, and Sold.

MOOrderAudit & MOOrderAudit::operator= ( const MOOrderAudit o)
virtual Nullable<qint64> MOOrderAudit::orderid ( ) const
inlinevirtual
QString MOOrderAudit::OrderState2locstr ( OrderState  e)
static

Converts enum OrderState value into the corresponding localized string.

References Cancelled, Closed, Placed, Reserved, Sent, and Sold.

QString MOOrderAudit::OrderState2str ( OrderState  e)
static

Converts enum OrderState value into the corresponding string.

References Cancelled, Closed, Placed, Reserved, Sent, and Sold.

virtual Nullable<qint64> MOOrderAudit::ordertime ( ) const
inlinevirtual
virtual Nullable<QString> MOOrderAudit::paydata ( ) const
inlinevirtual
virtual Nullable<QString> MOOrderAudit::paytype ( ) const
inlinevirtual
MOOrderAudit::Q_ENUMS ( OrderState  )
virtual Nullable<qint64> MOOrderAudit::senttime ( ) const
inlinevirtual
virtual void MOOrderAudit::setamountpaid ( Nullable< qint64 >  s)
inlinevirtual

amount that has been paid for this order

Referenced by MOOrderAudit().

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

Referenced by MOOrderAudit().

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

Referenced by MOOrderAudit().

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

Referenced by MOOrderAudit().

virtual void MOOrderAudit::setcustomerid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOOrderAudit().

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

Referenced by MOOrderAudit().

virtual void MOOrderAudit::setordertime ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOOrderAudit().

virtual void MOOrderAudit::setpaydata ( Nullable< QString >  s)
inlinevirtual

Referenced by MOOrderAudit().

virtual void MOOrderAudit::setpaytype ( Nullable< QString >  s)
inlinevirtual

Referenced by MOOrderAudit().

virtual void MOOrderAudit::setsenttime ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOOrderAudit().

virtual void MOOrderAudit::setshippingcosts ( Nullable< qint64 >  s)
inlinevirtual

costs for shipping

Referenced by MOOrderAudit().

virtual void MOOrderAudit::setsoldby ( Nullable< QString >  s)
inlinevirtual

Referenced by MOOrderAudit().

virtual void MOOrderAudit::setstatus ( Nullable< OrderState s)
inlinevirtual

Referenced by MOOrderAudit().

virtual Nullable<qint64> MOOrderAudit::shippingcosts ( ) const
inlinevirtual

costs for shipping

virtual Nullable<QString> MOOrderAudit::soldby ( ) const
inlinevirtual
virtual Nullable<OrderState> MOOrderAudit::status ( ) const
inlinevirtual
MOOrderAudit::OrderState MOOrderAudit::str2OrderState ( QString  s,
bool *  ok = 0 
)
static

Converts string into the corresponding enum OrderState value.

References Cancelled, Closed, Placed, Reserved, Sent, and Sold.

Referenced by MOOrderAudit().

QString MOOrderAudit::toString ( )

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

References toXml().

QDomElement MOOrderAudit::toXml ( QDomDocument &  doc,
QString  name = "OrderAudit" 
)

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

Referenced by toString().

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

Member Data Documentation

Nullable<qint64> MOOrderAudit::mp_amountpaid
protected

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

Nullable<qint64> MOOrderAudit::mp_audittime
protected

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

Nullable<QString> MOOrderAudit::mp_audittransaction
protected

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

Nullable<QString> MOOrderAudit::mp_audituname
protected

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

Nullable<qint64> MOOrderAudit::mp_customerid
protected

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

Nullable<qint64> MOOrderAudit::mp_orderid
protected

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

Nullable<qint64> MOOrderAudit::mp_ordertime
protected

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

Nullable<QString> MOOrderAudit::mp_paydata
protected

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

Nullable<QString> MOOrderAudit::mp_paytype
protected

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

Nullable<qint64> MOOrderAudit::mp_senttime
protected

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

Nullable<qint64> MOOrderAudit::mp_shippingcosts
protected

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

Nullable<QString> MOOrderAudit::mp_soldby
protected

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

Nullable<OrderState> MOOrderAudit::mp_status
protected

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

Property Documentation

Nullable<qint64> MOOrderAudit::amountpaid
readwrite

amount that has been paid for this order

Nullable<qint64> MOOrderAudit::audittime
readwrite

Referenced by MOAItem::auditTime().

Nullable<QString> MOOrderAudit::audittransaction
readwrite
Nullable<QString> MOOrderAudit::audituname
readwrite

Referenced by MOAItem::auditUser().

Nullable<qint64> MOOrderAudit::customerid
readwrite
Nullable<qint64> MOOrderAudit::orderid
readwrite

Referenced by MOAItem::itemID().

Nullable<qint64> MOOrderAudit::ordertime
readwrite
Nullable<QString> MOOrderAudit::paydata
readwrite
Nullable<QString> MOOrderAudit::paytype
readwrite
Nullable<qint64> MOOrderAudit::senttime
readwrite
Nullable<qint64> MOOrderAudit::shippingcosts
readwrite

costs for shipping

Nullable<QString> MOOrderAudit::soldby
readwrite
Nullable<OrderState> MOOrderAudit::status
readwrite

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