MagicSmoke  $VERSION$
MTCreatePriceCategory Class Reference

creates a new price category (generic, not yet event specific) More...

#include <srcMTCreatePriceCategory.h>

Inheritance diagram for MTCreatePriceCategory:
MTransaction

Public Member Functions

 MTCreatePriceCategory ()
 default constructor: generates an invalid transaction More...
 
 MTCreatePriceCategory (const MTCreatePriceCategory &)
 copy constructor: the two copies share their state More...
 
virtual ~MTCreatePriceCategory ()
 deletes this instance More...
 
Q_SLOT Nullable< MOPriceCategorygetpricecategory () const
 properties as actually stored More...
 
MTCreatePriceCategoryoperator= (const MTCreatePriceCategory &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTCreatePriceCategory asyncQuery (const MOPriceCategory &apricecategory, 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 MTCreatePriceCategory query (const MOPriceCategory &apricecategory, 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

 MTCreatePriceCategory (const MOPriceCategory &apricecategory, 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 MTCreatePriceCategory_Private
 

Detailed Description

creates a new price category (generic, not yet event specific)

Constructor & Destructor Documentation

MTCreatePriceCategory::MTCreatePriceCategory ( const MOPriceCategory apricecategory,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
apricecategoryproperties as requested by user
ifaceID of the interface that the transaction will be sent on

References MTCreatePriceCategory_Private::in_pricecategory, and MTCreatePriceCategory_Private.

MTCreatePriceCategory::MTCreatePriceCategory ( )

default constructor: generates an invalid transaction

References MTCreatePriceCategory_Private.

MTCreatePriceCategory::MTCreatePriceCategory ( const MTCreatePriceCategory t)

copy constructor: the two copies share their state

References MTCreatePriceCategory_Private::attach().

MTCreatePriceCategory::~MTCreatePriceCategory ( )
virtual

deletes this instance

References MTCreatePriceCategory_Private::detach().

Member Function Documentation

MTCreatePriceCategory MTCreatePriceCategory::asyncQuery ( const MOPriceCategory apricecategory,
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
apricecategoryproperties as requested by user
ifaceID of the interface that the transaction will be sent on
void MTCreatePriceCategory::endQuery ( )
protectedvirtual
Nullable< MOPriceCategory > MTCreatePriceCategory::getpricecategory ( ) const

properties as actually stored

References MTCreatePriceCategory_Private::out_pricecategory.

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

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

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

MTCreatePriceCategory MTCreatePriceCategory::query ( const MOPriceCategory apricecategory,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
apricecategoryproperties as requested by user
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryCreatePriceCategory().

Friends And Related Function Documentation

friend class MTCreatePriceCategory_Private
friend

Referenced by MTCreatePriceCategory().


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