MagicSmoke  $VERSION$
MTChangePriceCategory Class Reference

changes a price category globally More...

#include <srcMTChangePriceCategory.h>

Inheritance diagram for MTChangePriceCategory:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTChangePriceCategory 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 MTChangePriceCategory 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

 MTChangePriceCategory (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 MTChangePriceCategory_Private
 

Detailed Description

changes a price category globally

Constructor & Destructor Documentation

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

generates an instance from its properties

Parameters
apricecategoryproperties of the category
ifaceID of the interface that the transaction will be sent on

References MTChangePriceCategory_Private::in_pricecategory, and MTChangePriceCategory_Private.

MTChangePriceCategory::MTChangePriceCategory ( )

default constructor: generates an invalid transaction

References MTChangePriceCategory_Private.

MTChangePriceCategory::MTChangePriceCategory ( const MTChangePriceCategory t)

copy constructor: the two copies share their state

References MTChangePriceCategory_Private::attach().

MTChangePriceCategory::~MTChangePriceCategory ( )
virtual

deletes this instance

References MTChangePriceCategory_Private::detach().

Member Function Documentation

MTChangePriceCategory MTChangePriceCategory::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 of the category
ifaceID of the interface that the transaction will be sent on
void MTChangePriceCategory::endQuery ( )
protectedvirtual
Nullable< MOPriceCategory > MTChangePriceCategory::getpricecategory ( ) const

properties as actually stored

References MTChangePriceCategory_Private::out_pricecategory.

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

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

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

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

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

Parameters
apricecategoryproperties of the category
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryChangePriceCategory().

Friends And Related Function Documentation

friend class MTChangePriceCategory_Private
friend

Referenced by MTChangePriceCategory().


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