BPS C++ API  2.24.4
bpsdbproxylink.h
Go to the documentation of this file.
1 
4 #ifndef BPSDBPROXYLINK_H
5 #define BPSDBPROXYLINK_H
6 
7 #include "bpscore_global.h"
8 #include "bpsdbproxy.h"
9 #include <QVariantList>
10 #include <QSqlRecord>
11 
16 {
17  Q_OBJECT
19 
20 public:
21 
25  BpsDbProxyLink(QObject* aParent=0);
26 
27  virtual ~BpsDbProxyLink();
28 
36  bool open(const QString& aHost, int aPort, QString* aErrorMessage = 0);
37 
41  void close();
42 
52  StatusType transact(CommandType aCommand, const QVariantList& aSendData, QVariantList& aRecData, int aMinData = 0, int aMaxData = 0);
53 
61  static QStringList connections(const QString& aHost, int aPort);
62 
80  static QVariantMap connection(const QString& aHost, int aPort, const QString& aConnection);
81 
87  static void serialize(const QVariantList& aData, QDataStream& aStream);
88 
94  static QVariantList deserialize(QDataStream& aStream);
95 
101  static QString commandText(CommandType aCommand);
102 
108  static QString statusText(StatusType aStatus);
109 };
110 
111 #endif // BPSDBPROXYLINK_H
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