MagicSmoke  $VERSION$
MTCreateContactType Class Reference

creates a new contact type (phone, mail, ...) More...

#include <srcMTCreateContactType.h>

Inheritance diagram for MTCreateContactType:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTCreateContactType asyncQuery (const QString &atypename, const QString &auriprefix, 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 MTCreateContactType query (const QString &atypename, const QString &auriprefix, 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

 MTCreateContactType (const QString &atypename, const QString &auriprefix, 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 MTCreateContactType_Private
 

Detailed Description

creates a new contact type (phone, mail, ...)

Constructor & Destructor Documentation

MTCreateContactType::MTCreateContactType ( const QString &  atypename,
const QString &  auriprefix,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
atypename
auriprefix
ifaceID of the interface that the transaction will be sent on

References MTCreateContactType_Private::in_typename, MTCreateContactType_Private::in_uriprefix, and MTCreateContactType_Private.

MTCreateContactType::MTCreateContactType ( )

default constructor: generates an invalid transaction

References MTCreateContactType_Private.

MTCreateContactType::MTCreateContactType ( const MTCreateContactType t)

copy constructor: the two copies share their state

References MTCreateContactType_Private::attach().

MTCreateContactType::~MTCreateContactType ( )
virtual

deletes this instance

References MTCreateContactType_Private::detach().

Member Function Documentation

MTCreateContactType MTCreateContactType::asyncQuery ( const QString &  atypename,
const QString &  auriprefix,
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
atypename
auriprefix
ifaceID of the interface that the transaction will be sent on
void MTCreateContactType::endQuery ( )
protectedvirtual
Nullable< MOContactType > MTCreateContactType::getcontacttype ( ) const
MTCreateContactType & MTCreateContactType::operator= ( const MTCreateContactType t)

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

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

MTCreateContactType MTCreateContactType::query ( const QString &  atypename,
const QString &  auriprefix,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
atypename
auriprefix
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryCreateContactType(), and MContactTableDelegate::setModelData().

Friends And Related Function Documentation

friend class MTCreateContactType_Private
friend

Referenced by MTCreateContactType().


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