BPS C++ API  2.24.4
bpsrfid.h
Go to the documentation of this file.
1 
4 #ifndef BPSRFID_H
5 #define BPSRFID_H
6 
7 #include "bpscore_global.h"
8 #include <QObject>
9 #include <QVariantMap>
10 
19 {
20  Q_OBJECT
22 
23 public:
27  BpsRfid(QObject* aParent=0);
28 
32  virtual ~BpsRfid();
33 
39  void setConfig(const QMap<QString,QString>& aConfig);
40 
46 
52  virtual void writeItemRequest(const QVariant& aItemKey, int aLineNo) = 0;
53 
54 signals:
55 
61  void writeItemResponse(bool aOk, const QString& aData);
62 
68  void dataSent(const QString& aData);
69 
75  void dataReceived(const QString& aData);
76 };
77 
78 #endif // BPSRFID_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
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
RFID interface.
Definition: bpsrfid.h:19
BpsRfid(QObject *aParent=0)
void setConfig(const QMap< QString, QString > &aConfig)
Set the RFID configuration.
void dataReceived(const QString &aData)
Signal emitted with data is received as response from the RFID system.
QMap< QString, QString > config() const
void writeItemResponse(bool aOk, const QString &aData)
Signal emitted after receiving the answer to a item write request.
virtual void writeItemRequest(const QVariant &aItemKey, int aLineNo)=0
Send item write request.
virtual ~BpsRfid()
Virtual default destructor.
void dataSent(const QString &aData)
Signal emitted when data is sent as request to the RFID system.