BPS C++ API  2.24.4
bpslabelergui.h
Go to the documentation of this file.
1 
4 #ifndef BPSLABELERGUI_H
5 #define BPSLABELERGUI_H
6 
7 #include "bpsgui_global.h"
8 #include "bpslabeler.h"
9 #include <QWidget>
10 #include <QVariantMap>
11 
12 class QWidget;
13 
20 {
21  Q_OBJECT
23 
24 public:
29  BpsLabelerGui(BpsLabeler* aLabeler, QObject* aParent = nullptr);
30 
31  virtual ~BpsLabelerGui();
32 
36  BpsLabeler* labeler() const;
37 
46  bool open(int aLineNo, const QString& aLineName, const QMap<QString,QString>& aConfig, QWidget* aParent);
47 
53  bool close(QWidget* aParent);
54 
63  bool load(const QVariant& aArticle, const QVariantMap& aParams, QWidget* aParent);
64 
72  bool save(const QVariant& aArticle, const QVariantMap& aParams, QWidget* aParent);
73 
82  bool saveLoad(const QVariant& aArticle, const QVariantMap& aParams, QWidget* aParent);
83 
89  bool print(QWidget* aParent);
90 
98  bool clear(BpsLabeler::Entity aEntity, const QVariant& aKey, QWidget* aParent);
99 
105  bool start(QWidget* aParent);
106 
112  bool stop(QWidget* aParent);
113 
124  bool control(int aOp, const QVariantMap& aInput, QVariantMap& aOutput, QWidget* aParent);
125 
126 };
127 
128 #endif // BPSLABELERGUI_H
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
Public include file for BpsLabeler class.
GUI labeler interface.
Definition: bpslabelergui.h:20
BpsLabelerGui(BpsLabeler *aLabeler, QObject *aParent=nullptr)
bool stop(QWidget *aParent)
Stop labeling, if supported by the device.
bool save(const QVariant &aArticle, const QVariantMap &aParams, QWidget *aParent)
Save an article to the labelers internal database for emergency or offline operation.
BpsLabeler * labeler() const
bool close(QWidget *aParent)
Close the device and release it for manual operation.
bool print(QWidget *aParent)
Print a single label with the article previously loaded into the working memory.
bool start(QWidget *aParent)
Start labeling, if supported by the device.
bool clear(BpsLabeler::Entity aEntity, const QVariant &aKey, QWidget *aParent)
Delete articles from the labelers internal database.
bool control(int aOp, const QVariantMap &aInput, QVariantMap &aOutput, QWidget *aParent)
Execute labeler specific operations.
bool saveLoad(const QVariant &aArticle, const QVariantMap &aParams, QWidget *aParent)
Save an article to the labelers internal database, and load it into the working memory so it is ready...
bool load(const QVariant &aArticle, const QVariantMap &aParams, QWidget *aParent)
Load an article into the working memory so it is ready to start labeling.
bool open(int aLineNo, const QString &aLineName, const QMap< QString, QString > &aConfig, QWidget *aParent)
Open the device and do general initializations (setting the current date for example).
Labeler interface.
Definition: bpslabeler.h:17
Entity
Clearing entities.
Definition: bpslabeler.h:50