MagicSmoke  $VERSION$
MTServerInfo Class Reference

returns basic info about the server - this is part of the protocol handshake More...

#include <srcMTServerInfo.h>

Inheritance diagram for MTServerInfo:
MTransaction

Public Member Functions

 MTServerInfo ()
 default constructor: generates an invalid transaction More...
 
 MTServerInfo (const MTServerInfo &)
 copy constructor: the two copies share their state More...
 
virtual ~MTServerInfo ()
 deletes this instance More...
 
Q_SLOT Nullable< QString > getMinimumProtocolVersion () const
 Minimum communication protocol version that the server needs from the client. More...
 
Q_SLOT Nullable< QString > getServerProtocolVersion () const
 Protocol version that the server provides. More...
 
Q_SLOT Nullable< QString > getServerVersion () const
 Human readable version of the server software. More...
 
MTServerInfooperator= (const MTServerInfo &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTServerInfo asyncQuery (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 MTServerInfo query (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

 MTServerInfo (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 MTServerInfo_Private
 

Detailed Description

returns basic info about the server - this is part of the protocol handshake

Constructor & Destructor Documentation

MTServerInfo::MTServerInfo ( QString  iface)
explicitprotected

generates an instance from its properties

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

References MTServerInfo_Private.

MTServerInfo::MTServerInfo ( )

default constructor: generates an invalid transaction

References MTServerInfo_Private.

MTServerInfo::MTServerInfo ( const MTServerInfo t)

copy constructor: the two copies share their state

References MTServerInfo_Private::attach().

MTServerInfo::~MTServerInfo ( )
virtual

deletes this instance

References MTServerInfo_Private::detach().

Member Function Documentation

MTServerInfo MTServerInfo::asyncQuery ( 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
ifaceID of the interface that the transaction will be sent on
void MTServerInfo::endQuery ( )
protectedvirtual
Nullable< QString > MTServerInfo::getMinimumProtocolVersion ( ) const

Minimum communication protocol version that the server needs from the client.

References MTServerInfo_Private::out_MinimumProtocolVersion.

Referenced by MSInterface::checkServer().

Nullable< QString > MTServerInfo::getServerProtocolVersion ( ) const

Protocol version that the server provides.

References MTServerInfo_Private::out_ServerProtocolVersion.

Referenced by MSInterface::checkServer().

Nullable< QString > MTServerInfo::getServerVersion ( ) const

Human readable version of the server software.

References MTServerInfo_Private::out_ServerVersion.

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

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

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

MTServerInfo MTServerInfo::query ( QString  iface = "MagicSmoke")
static

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

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

Referenced by MSInterface::checkServer(), and MInterface::queryServerInfo().

Friends And Related Function Documentation

friend class MTServerInfo_Private
friend

Referenced by MTServerInfo().


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