MagicSmoke  $VERSION$
MTDeleteShipping Class Reference

Attempts to delete a shipping method. This will fail if the method was used in existing orders - use flags to hide such methods from newer orders. More...

#include <srcMTDeleteShipping.h>

Inheritance diagram for MTDeleteShipping:
MTransaction

Public Member Functions

 MTDeleteShipping ()
 default constructor: generates an invalid transaction More...
 
 MTDeleteShipping (const MTDeleteShipping &)
 copy constructor: the two copies share their state More...
 
virtual ~MTDeleteShipping ()
 deletes this instance More...
 
MTDeleteShippingoperator= (const MTDeleteShipping &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTDeleteShipping asyncQuery (const qint64 &ashipid, 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 MTDeleteShipping query (const qint64 &ashipid, 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

 MTDeleteShipping (const qint64 &ashipid, 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 MTDeleteShipping_Private
 

Detailed Description

Attempts to delete a shipping method. This will fail if the method was used in existing orders - use flags to hide such methods from newer orders.

Constructor & Destructor Documentation

MTDeleteShipping::MTDeleteShipping ( const qint64 &  ashipid,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTDeleteShipping_Private::in_shipid, and MTDeleteShipping_Private.

MTDeleteShipping::MTDeleteShipping ( )

default constructor: generates an invalid transaction

References MTDeleteShipping_Private.

MTDeleteShipping::MTDeleteShipping ( const MTDeleteShipping t)

copy constructor: the two copies share their state

References MTDeleteShipping_Private::attach().

MTDeleteShipping::~MTDeleteShipping ( )
virtual

deletes this instance

References MTDeleteShipping_Private::detach().

Member Function Documentation

MTDeleteShipping MTDeleteShipping::asyncQuery ( const qint64 &  ashipid,
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
ashipid
ifaceID of the interface that the transaction will be sent on
void MTDeleteShipping::endQuery ( )
protectedvirtual
MTDeleteShipping & MTDeleteShipping::operator= ( const MTDeleteShipping t)

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

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

MTDeleteShipping MTDeleteShipping::query ( const qint64 &  ashipid,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryDeleteShipping().

Friends And Related Function Documentation

friend class MTDeleteShipping_Private
friend

Referenced by MTDeleteShipping().


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