MagicSmoke
$VERSION$
|
returns basic info about the server - this is part of the protocol handshake More...
#include <srcMTServerInfo.h>
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... | |
MTServerInfo & | operator= (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 |
returns basic info about the server - this is part of the protocol handshake
|
explicitprotected |
generates an instance from its properties
iface | ID 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().
|
virtual |
deletes this instance
References MTServerInfo_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
iface | ID of the interface that the transaction will be sent on |
|
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().
|
static |
emits the query over the network and returns the finished transaction object
iface | ID of the interface that the transaction will be sent on |
Referenced by MSInterface::checkServer(), and MInterface::queryServerInfo().
|
friend |
Referenced by MTServerInfo().