MagicSmoke
$VERSION$
|
Sends an eMail to a customer. Usually to update the customer about Order data. More...
#include <srcMTSendCustomerMail.h>
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... | |
MTSendCustomerMail & | operator= (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 |
Sends an eMail to a customer. Usually to update the customer about Order data.
|
explicitprotected |
generates an instance from its properties
acustomerid | ID of the customer. Must be given! The mail address associated with the account is used. |
acontent | Content of the eMail. |
iface | ID 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().
|
virtual |
deletes this instance
References MTSendCustomerMail_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
acustomerid | ID of the customer. Must be given! The mail address associated with the account is used. |
acontent | Content of the eMail. |
iface | ID of the interface that the transaction will be sent on |
|
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().
|
static |
emits the query over the network and returns the finished transaction object
acustomerid | ID of the customer. Must be given! The mail address associated with the account is used. |
acontent | Content of the eMail. |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::querySendCustomerMail().
|
friend |
Referenced by MTSendCustomerMail().