MagicSmoke  $VERSION$
MTChangeTicketPrice Class Reference

Privileged users: change the price of a ticket. Usually you would change its category. More...

#include <srcMTChangeTicketPrice.h>

Inheritance diagram for MTChangeTicketPrice:
MTransaction

Public Member Functions

 MTChangeTicketPrice ()
 default constructor: generates an invalid transaction More...
 
 MTChangeTicketPrice (const MTChangeTicketPrice &)
 copy constructor: the two copies share their state More...
 
virtual ~MTChangeTicketPrice ()
 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...
 
MTChangeTicketPriceoperator= (const MTChangeTicketPrice &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

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

 MTChangeTicketPrice (const QString &abarcode, const qint64 &aprice, 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 MTChangeTicketPrice_Private
 

Detailed Description

Privileged users: change the price of a ticket. Usually you would change its category.

Constructor & Destructor Documentation

MTChangeTicketPrice::MTChangeTicketPrice ( const QString &  abarcode,
const qint64 &  aprice,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTChangeTicketPrice_Private::in_barcode, MTChangeTicketPrice_Private::in_price, and MTChangeTicketPrice_Private.

MTChangeTicketPrice::MTChangeTicketPrice ( )

default constructor: generates an invalid transaction

References MTChangeTicketPrice_Private.

MTChangeTicketPrice::MTChangeTicketPrice ( const MTChangeTicketPrice t)

copy constructor: the two copies share their state

References MTChangeTicketPrice_Private::attach().

MTChangeTicketPrice::~MTChangeTicketPrice ( )
virtual

deletes this instance

References MTChangeTicketPrice_Private::detach().

Member Function Documentation

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

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

References MTChangeTicketPrice_Private::out_order.

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

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

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

MTChangeTicketPrice MTChangeTicketPrice::query ( const QString &  abarcode,
const qint64 &  aprice,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryChangeTicketPrice().

Friends And Related Function Documentation

friend class MTChangeTicketPrice_Private
friend

Referenced by MTChangeTicketPrice().


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