MagicSmoke  $VERSION$
MTCreateCountry Class Reference

creates a new country in the database More...

#include <srcMTCreateCountry.h>

Inheritance diagram for MTCreateCountry:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTCreateCountry asyncQuery (const QString &aabbrev, const QString &aname, 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 MTCreateCountry query (const QString &aabbrev, const QString &aname, 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

 MTCreateCountry (const QString &aabbrev, const QString &aname, 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 MTCreateCountry_Private
 

Detailed Description

creates a new country in the database

Constructor & Destructor Documentation

MTCreateCountry::MTCreateCountry ( const QString &  aabbrev,
const QString &  aname,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aabbrev
aname
ifaceID of the interface that the transaction will be sent on

References MTCreateCountry_Private::in_abbrev, MTCreateCountry_Private::in_name, and MTCreateCountry_Private.

MTCreateCountry::MTCreateCountry ( )

default constructor: generates an invalid transaction

References MTCreateCountry_Private.

MTCreateCountry::MTCreateCountry ( const MTCreateCountry t)

copy constructor: the two copies share their state

References MTCreateCountry_Private::attach().

MTCreateCountry::~MTCreateCountry ( )
virtual

deletes this instance

References MTCreateCountry_Private::detach().

Member Function Documentation

MTCreateCountry MTCreateCountry::asyncQuery ( const QString &  aabbrev,
const QString &  aname,
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
aabbrev
aname
ifaceID of the interface that the transaction will be sent on
void MTCreateCountry::endQuery ( )
protectedvirtual
Nullable< MOCountry > MTCreateCountry::getcountry ( ) const
MTCreateCountry & MTCreateCountry::operator= ( const MTCreateCountry t)

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

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

MTCreateCountry MTCreateCountry::query ( const QString &  aabbrev,
const QString &  aname,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
aabbrev
aname
ifaceID of the interface that the transaction will be sent on

Referenced by MAddressDialog::createNewCountry(), and MInterface::queryCreateCountry().

Friends And Related Function Documentation

friend class MTCreateCountry_Private
friend

Referenced by MTCreateCountry().


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