4 #ifndef BPSDBPROXYLINK_H
5 #define BPSDBPROXYLINK_H
9 #include <QVariantList>
Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
Public include file for BPS database proxy definitions.
quint16 StatusType
Transaction return status type.
Definition: bpsdbproxy.h:12
quint16 CommandType
Transaction command type.
Definition: bpsdbproxy.h:11
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
TCP/IP client protocol class for database proxy.
Definition: bpsdbproxylink.h:16
void close()
Close the proxy communication socket.
bool open(const QString &aHost, int aPort, QString *aErrorMessage=0)
Open the proxy communication socket.
static QVariantList deserialize(QDataStream &aStream)
Deserialize a list of values from a data stream.
static QVariantMap connection(const QString &aHost, int aPort, const QString &aConnection)
Get parameters of a remote connection on the proxy server.
static QStringList connections(const QString &aHost, int aPort)
Get remote connections available on the proxy server.
BpsDbProxyLink(QObject *aParent=0)
StatusType transact(CommandType aCommand, const QVariantList &aSendData, QVariantList &aRecData, int aMinData=0, int aMaxData=0)
Send a command and wait for the reply.
static QString commandText(CommandType aCommand)
Get text representation of a command.
static void serialize(const QVariantList &aData, QDataStream &aStream)
Serialize a list of values to a data stream.
static QString statusText(StatusType aStatus)
Get text representation of a status.