|
MagicSmoke
$VERSION$
|
Changes the validity date of the voucher. More...
#include <srcMTChangeVoucherValidity.h>
Public Member Functions | |
| MTChangeVoucherValidity () | |
| default constructor: generates an invalid transaction More... | |
| MTChangeVoucherValidity (const MTChangeVoucherValidity &) | |
| copy constructor: the two copies share their state More... | |
| virtual | ~MTChangeVoucherValidity () |
| deletes this instance More... | |
| Q_SLOT Nullable< MOOrder > | getorder () const |
| The order of the voucher as it is left after changing. More... | |
| Q_SLOT Nullable< MOVoucher > | getvoucher () const |
| The voucher as it is left after changing. More... | |
| MTChangeVoucherValidity & | operator= (const MTChangeVoucherValidity &) |
| copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
| static MTChangeVoucherValidity | asyncQuery (const QString &avoucherid, const bool &avalidforever, const qint64 &avalidtime, const QString &acomment, 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 MTChangeVoucherValidity | query (const QString &avoucherid, const bool &avalidforever, const qint64 &avalidtime, const QString &acomment, 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 | |
| MTChangeVoucherValidity (const QString &avoucherid, const bool &avalidforever, const qint64 &avalidtime, const QString &acomment, 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 | MTChangeVoucherValidity_Private |
Changes the validity date of the voucher.
|
explicitprotected |
generates an instance from its properties
| avoucherid | ID of the voucher |
| avalidforever | If true: set validity to infinite. |
| avalidtime | Validity time of the voucher (will be rounded to a full day) |
| acomment | optional comment for emptying the voucher |
| iface | ID of the interface that the transaction will be sent on |
References MTChangeVoucherValidity_Private::in_comment, MTChangeVoucherValidity_Private::in_validforever, MTChangeVoucherValidity_Private::in_validtime, MTChangeVoucherValidity_Private::in_voucherid, and MTChangeVoucherValidity_Private.
| MTChangeVoucherValidity::MTChangeVoucherValidity | ( | ) |
default constructor: generates an invalid transaction
References MTChangeVoucherValidity_Private.
| MTChangeVoucherValidity::MTChangeVoucherValidity | ( | const MTChangeVoucherValidity & | t | ) |
copy constructor: the two copies share their state
References MTChangeVoucherValidity_Private::attach().
|
virtual |
deletes this instance
References MTChangeVoucherValidity_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
| avoucherid | ID of the voucher |
| avalidforever | If true: set validity to infinite. |
| avalidtime | Validity time of the voucher (will be rounded to a full day) |
| acomment | optional comment for emptying the voucher |
| iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
| Nullable< MOOrder > MTChangeVoucherValidity::getorder | ( | ) | const |
The order of the voucher as it is left after changing.
References MTChangeVoucherValidity_Private::out_order.
| Nullable< MOVoucher > MTChangeVoucherValidity::getvoucher | ( | ) | const |
The voucher as it is left after changing.
References MTChangeVoucherValidity_Private::out_voucher.
| MTChangeVoucherValidity & MTChangeVoucherValidity::operator= | ( | const MTChangeVoucherValidity & | t | ) |
copy assignment: the copy shares the state of the original object
References MTChangeVoucherValidity_Private::attach(), and MTChangeVoucherValidity_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
| avoucherid | ID of the voucher |
| avalidforever | If true: set validity to infinite. |
| avalidtime | Validity time of the voucher (will be rounded to a full day) |
| acomment | optional comment for emptying the voucher |
| iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryChangeVoucherValidity().
|
friend |
Referenced by MTChangeVoucherValidity().