MagicSmoke  $VERSION$
MTGetTicket Class Reference

returns a specific ticket with detailed info More...

#include <srcMTGetTicket.h>

Inheritance diagram for MTGetTicket:
MTransaction

Public Member Functions

 MTGetTicket ()
 default constructor: generates an invalid transaction More...
 
 MTGetTicket (const MTGetTicket &)
 copy constructor: the two copies share their state More...
 
virtual ~MTGetTicket ()
 deletes this instance More...
 
Q_SLOT Nullable< MOTicketgetticket () const
 
MTGetTicketoperator= (const MTGetTicket &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTGetTicket asyncQuery (const QString &aticketid, 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 MTGetTicket query (const QString &aticketid, 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

 MTGetTicket (const QString &aticketid, 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 MTGetTicket_Private
 

Detailed Description

returns a specific ticket with detailed info

Constructor & Destructor Documentation

MTGetTicket::MTGetTicket ( const QString &  aticketid,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aticketid
ifaceID of the interface that the transaction will be sent on

References MTGetTicket_Private::in_ticketid, and MTGetTicket_Private.

MTGetTicket::MTGetTicket ( )

default constructor: generates an invalid transaction

References MTGetTicket_Private.

MTGetTicket::MTGetTicket ( const MTGetTicket t)

copy constructor: the two copies share their state

References MTGetTicket_Private::attach().

MTGetTicket::~MTGetTicket ( )
virtual

deletes this instance

References MTGetTicket_Private::detach().

Member Function Documentation

MTGetTicket MTGetTicket::asyncQuery ( const QString &  aticketid,
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
aticketid
ifaceID of the interface that the transaction will be sent on
void MTGetTicket::endQuery ( )
protectedvirtual
Nullable< MOTicket > MTGetTicket::getticket ( ) const
MTGetTicket & MTGetTicket::operator= ( const MTGetTicket t)

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

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

MTGetTicket MTGetTicket::query ( const QString &  aticketid,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
aticketid
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryGetTicket().

Friends And Related Function Documentation

friend class MTGetTicket_Private
friend

Referenced by MTGetTicket().


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