MagicSmoke  $VERSION$
MTSendCustomerMail Class Reference

Sends an eMail to a customer. Usually to update the customer about Order data. More...

#include <srcMTSendCustomerMail.h>

Inheritance diagram for MTSendCustomerMail:
MTransaction

Public Member Functions

 MTSendCustomerMail ()
 default constructor: generates an invalid transaction More...
 
 MTSendCustomerMail (const MTSendCustomerMail &)
 copy constructor: the two copies share their state More...
 
virtual ~MTSendCustomerMail ()
 deletes this instance More...
 
MTSendCustomerMailoperator= (const MTSendCustomerMail &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTSendCustomerMail asyncQuery (const qint64 &acustomerid, const QString &acontent, QString iface="MagicSmoke")
 emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state More...
 
static MTSendCustomerMail query (const qint64 &acustomerid, const QString &acontent, QString iface="MagicSmoke")
 emits the query over the network and returns the finished transaction object More...
 
- Static Public Member Functions inherited from MTransaction
static void setStartStopActions (const MTStartStop &start, const MTStartStop &stop)
 set actions to be executed at start/stop More...
 

Protected Member Functions

 MTSendCustomerMail (const qint64 &acustomerid, const QString &acontent, QString iface)
 generates an instance from its properties More...
 
virtual void endQuery ()
 
- Protected Member Functions inherited from MTransaction
 MTransaction (QString iface=QString())
 internal: construct the transaction More...
 
 MTransaction (const WTransaction &)
 internal: copy the transaction More...
 
 MTransaction (const MTransaction &)
 internal: copy the transaction More...
 
QByteArray executeQuery (QString, QByteArray)
 internal: extend executeQuery to show a wait cursor More...
 

Friends

class MTSendCustomerMail_Private
 

Detailed Description

Sends an eMail to a customer. Usually to update the customer about Order data.

Constructor & Destructor Documentation

MTSendCustomerMail::MTSendCustomerMail ( const qint64 &  acustomerid,
const QString &  acontent,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
acustomeridID of the customer. Must be given! The mail address associated with the account is used.
acontentContent of the eMail.
ifaceID of the interface that the transaction will be sent on

References MTSendCustomerMail_Private::in_content, MTSendCustomerMail_Private::in_customerid, and MTSendCustomerMail_Private.

MTSendCustomerMail::MTSendCustomerMail ( )

default constructor: generates an invalid transaction

References MTSendCustomerMail_Private.

MTSendCustomerMail::MTSendCustomerMail ( const MTSendCustomerMail t)

copy constructor: the two copies share their state

References MTSendCustomerMail_Private::attach().

MTSendCustomerMail::~MTSendCustomerMail ( )
virtual

deletes this instance

References MTSendCustomerMail_Private::detach().

Member Function Documentation

MTSendCustomerMail MTSendCustomerMail::asyncQuery ( const qint64 &  acustomerid,
const QString &  acontent,
QString  iface = "MagicSmoke" 
)
static

emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state

Parameters
acustomeridID of the customer. Must be given! The mail address associated with the account is used.
acontentContent of the eMail.
ifaceID of the interface that the transaction will be sent on
void MTSendCustomerMail::endQuery ( )
protectedvirtual
MTSendCustomerMail & MTSendCustomerMail::operator= ( const MTSendCustomerMail t)

copy assignment: the copy shares the state of the original object

References MTSendCustomerMail_Private::attach(), and MTSendCustomerMail_Private::detach().

MTSendCustomerMail MTSendCustomerMail::query ( const qint64 &  acustomerid,
const QString &  acontent,
QString  iface = "MagicSmoke" 
)
static

emits the query over the network and returns the finished transaction object

Parameters
acustomeridID of the customer. Must be given! The mail address associated with the account is used.
acontentContent of the eMail.
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::querySendCustomerMail().

Friends And Related Function Documentation

friend class MTSendCustomerMail_Private
friend

Referenced by MTSendCustomerMail().


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