MagicSmoke  $VERSION$
MOOrderDocumentInfo Class Reference

This class represents a document stored for a specific order without the actual content blob. More...

#include <srcMOOrderDocumentInfo.h>

Inheritance diagram for MOOrderDocumentInfo:

Public Member Functions

 MOOrderDocumentInfo ()
 default constructor: constructs an invalid instance of MOOrderDocumentInfo More...
 
 MOOrderDocumentInfo (const MOOrderDocumentInfo &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOOrderDocumentInfo (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOOrderDocumentInfo ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< qint64 > fileid () const
 Informational: internal file ID. More...
 
virtual Nullable< QString > filename () const
 The file name of the document. More...
 
virtual Nullable< qint64 > mtime () const
 Modification Time. More...
 
MOOrderDocumentInfooperator= (const MOOrderDocumentInfo &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< qint64 > orderid () const
 The order it belongs to. More...
 
virtual Nullable< qint64 > rtime () const
 Web Retrieval Time. More...
 
virtual void setfileid (Nullable< qint64 > s)
 Informational: internal file ID. More...
 
virtual void setfilename (Nullable< QString > s)
 The file name of the document. More...
 
virtual void setmtime (Nullable< qint64 > s)
 Modification Time. More...
 
virtual void setorderid (Nullable< qint64 > s)
 The order it belongs to. More...
 
virtual void setrtime (Nullable< qint64 > s)
 Web Retrieval Time. More...
 
virtual void setvisible (Nullable< bool > s)
 True if the file is visible for the customer. More...
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="OrderDocumentInfo")
 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< bool > visible () const
 True if the file is visible for the customer. More...
 

Static Public Member Functions

static MOOrderDocumentInfo fromString (const QString &)
 create MOOrderDocumentInfo from XML formatted string (inverse of toString) More...
 
static MOOrderDocumentInfo fromXml (const QDomElement &)
 create MOOrderDocumentInfo from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< qint64 > mp_fileid
 
Nullable< QString > mp_filename
 
Nullable< qint64 > mp_mtime
 
Nullable< qint64 > mp_orderid
 
Nullable< qint64 > mp_rtime
 
Nullable< bool > mp_visible
 

Detailed Description

This class represents a document stored for a specific order without the actual content blob.

Constructor & Destructor Documentation

MOOrderDocumentInfo::MOOrderDocumentInfo ( )
inline

default constructor: constructs an invalid instance of MOOrderDocumentInfo

Referenced by fromString(), and fromXml().

MOOrderDocumentInfo::MOOrderDocumentInfo ( const MOOrderDocumentInfo o)

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

References mp_fileid, mp_filename, mp_mtime, mp_orderid, mp_rtime, and mp_visible.

MOOrderDocumentInfo::MOOrderDocumentInfo ( const QDomElement &  root)
explicit

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

References setfileid(), setfilename(), setmtime(), setorderid(), setrtime(), and setvisible().

virtual MOOrderDocumentInfo::~MOOrderDocumentInfo ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<qint64> MOOrderDocumentInfo::fileid ( ) const
inlinevirtual

Informational: internal file ID.

virtual Nullable<QString> MOOrderDocumentInfo::filename ( ) const
inlinevirtual

The file name of the document.

MOOrderDocumentInfo MOOrderDocumentInfo::fromString ( const QString &  txt)
static

create MOOrderDocumentInfo from XML formatted string (inverse of toString)

References MOOrderDocumentInfo().

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

create MOOrderDocumentInfo from XML (inverse of toXml)

References MOOrderDocumentInfo().

virtual Nullable<qint64> MOOrderDocumentInfo::mtime ( ) const
inlinevirtual

Modification Time.

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

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

References mp_fileid, mp_filename, mp_mtime, mp_orderid, mp_rtime, and mp_visible.

virtual Nullable<qint64> MOOrderDocumentInfo::orderid ( ) const
inlinevirtual

The order it belongs to.

virtual Nullable<qint64> MOOrderDocumentInfo::rtime ( ) const
inlinevirtual

Web Retrieval Time.

virtual void MOOrderDocumentInfo::setfileid ( Nullable< qint64 >  s)
inlinevirtual

Informational: internal file ID.

Referenced by MOOrderDocumentInfo().

virtual void MOOrderDocumentInfo::setfilename ( Nullable< QString >  s)
inlinevirtual

The file name of the document.

Referenced by MOOrderDocumentInfo().

virtual void MOOrderDocumentInfo::setmtime ( Nullable< qint64 >  s)
inlinevirtual

Modification Time.

Referenced by MOOrderDocumentInfo().

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

The order it belongs to.

Referenced by MOOrderDocumentInfo().

virtual void MOOrderDocumentInfo::setrtime ( Nullable< qint64 >  s)
inlinevirtual

Web Retrieval Time.

Referenced by MOOrderDocumentInfo().

virtual void MOOrderDocumentInfo::setvisible ( Nullable< bool >  s)
inlinevirtual

True if the file is visible for the customer.

Referenced by MOOrderDocumentInfo().

QString MOOrderDocumentInfo::toString ( )

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

References toXml().

QDomElement MOOrderDocumentInfo::toXml ( QDomDocument &  doc,
QString  name = "OrderDocumentInfo" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_fileid, mp_filename, mp_mtime, mp_orderid, mp_rtime, and mp_visible.

virtual Nullable<bool> MOOrderDocumentInfo::visible ( ) const
inlinevirtual

True if the file is visible for the customer.

Member Data Documentation

Nullable<qint64> MOOrderDocumentInfo::mp_fileid
protected
Nullable<QString> MOOrderDocumentInfo::mp_filename
protected
Nullable<qint64> MOOrderDocumentInfo::mp_mtime
protected
Nullable<qint64> MOOrderDocumentInfo::mp_orderid
protected
Nullable<qint64> MOOrderDocumentInfo::mp_rtime
protected
Nullable<bool> MOOrderDocumentInfo::mp_visible
protected

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