MagicSmoke  $VERSION$
MTChangeTicketPriceCategory Class Reference

Mildly privileged users: change the category of a ticket (eg. from "normal price" to "reduced price"). The new category must exist for the event concerned. More...

#include <srcMTChangeTicketPriceCategory.h>

Inheritance diagram for MTChangeTicketPriceCategory:
MTransaction

Public Member Functions

 MTChangeTicketPriceCategory ()
 default constructor: generates an invalid transaction More...
 
 MTChangeTicketPriceCategory (const MTChangeTicketPriceCategory &)
 copy constructor: the two copies share their state More...
 
virtual ~MTChangeTicketPriceCategory ()
 deletes this instance More...
 
Q_SLOT Nullable< MOOrdergetorder () const
 the order that ownes the changed ticket, in case this is called from the order window More...
 
MTChangeTicketPriceCategoryoperator= (const MTChangeTicketPriceCategory &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTChangeTicketPriceCategory asyncQuery (const QString &abarcode, const qint64 &apricecategoryid, 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 MTChangeTicketPriceCategory query (const QString &abarcode, const qint64 &apricecategoryid, 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

 MTChangeTicketPriceCategory (const QString &abarcode, const qint64 &apricecategoryid, 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 MTChangeTicketPriceCategory_Private
 

Detailed Description

Mildly privileged users: change the category of a ticket (eg. from "normal price" to "reduced price"). The new category must exist for the event concerned.

Constructor & Destructor Documentation

MTChangeTicketPriceCategory::MTChangeTicketPriceCategory ( const QString &  abarcode,
const qint64 &  apricecategoryid,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
abarcode
apricecategoryid
ifaceID of the interface that the transaction will be sent on

References MTChangeTicketPriceCategory_Private::in_barcode, MTChangeTicketPriceCategory_Private::in_pricecategoryid, and MTChangeTicketPriceCategory_Private.

MTChangeTicketPriceCategory::MTChangeTicketPriceCategory ( )

default constructor: generates an invalid transaction

References MTChangeTicketPriceCategory_Private.

MTChangeTicketPriceCategory::MTChangeTicketPriceCategory ( const MTChangeTicketPriceCategory t)

copy constructor: the two copies share their state

References MTChangeTicketPriceCategory_Private::attach().

MTChangeTicketPriceCategory::~MTChangeTicketPriceCategory ( )
virtual

deletes this instance

References MTChangeTicketPriceCategory_Private::detach().

Member Function Documentation

MTChangeTicketPriceCategory MTChangeTicketPriceCategory::asyncQuery ( const QString &  abarcode,
const qint64 &  apricecategoryid,
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
abarcode
apricecategoryid
ifaceID of the interface that the transaction will be sent on
void MTChangeTicketPriceCategory::endQuery ( )
protectedvirtual
Nullable< MOOrder > MTChangeTicketPriceCategory::getorder ( ) const

the order that ownes the changed ticket, in case this is called from the order window

References MTChangeTicketPriceCategory_Private::out_order.

MTChangeTicketPriceCategory & MTChangeTicketPriceCategory::operator= ( const MTChangeTicketPriceCategory t)

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

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

MTChangeTicketPriceCategory MTChangeTicketPriceCategory::query ( const QString &  abarcode,
const qint64 &  apricecategoryid,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
abarcode
apricecategoryid
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryChangeTicketPriceCategory().

Friends And Related Function Documentation


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