MagicSmoke
$VERSION$
|
creates a new country in the database More...
#include <srcMTCreateCountry.h>
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< MOCountry > | getcountry () const |
MTCreateCountry & | operator= (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 |
creates a new country in the database
|
explicitprotected |
generates an instance from its properties
aabbrev | |
aname | |
iface | ID 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().
|
virtual |
deletes this instance
References MTCreateCountry_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
aabbrev | |
aname | |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
Nullable< MOCountry > MTCreateCountry::getcountry | ( | ) | const |
References MTCreateCountry_Private::out_country.
Referenced by MAddressDialog::createNewCountry().
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().
|
static |
emits the query over the network and returns the finished transaction object
aabbrev | |
aname | |
iface | ID of the interface that the transaction will be sent on |
Referenced by MAddressDialog::createNewCountry(), and MInterface::queryCreateCountry().
|
friend |
Referenced by MTCreateCountry().