BPS C++ API  2.24.4
bpsrobotsgui.h
Go to the documentation of this file.
1 
4 #ifndef BPSROBOTSGUI_H
5 #define BPSROBOTSGUI_H
6 
7 #include "bpsgui_global.h"
8 #include "bpsrobot.h"
9 #include <QWidget>
10 #include <QVariantList>
11 
12 class BpsOrderUtils;
13 class QWidget;
14 
21 {
22  Q_OBJECT
24 
25 public:
30  BpsRobotsGui(BpsOrderUtils* aUtils, QObject* aParent = nullptr);
31 
32  virtual ~BpsRobotsGui();
33 
37  BpsOrderUtils* utils() const;
38 
55  const QVariant& aZone,
56  const QVariant& aOrdertripKey,
57  QWidget* aParent);
58 
80  bool syncOrders(
81  const QVariant& aZone,
82  BpsRobot::OrderType aOrderType,
83  const QVariantList& aKeys,
84  BpsRobot::OrderSyncMode aSyncMode,
85  QWidget* aParent);
86 
107  const QVariant& aZone,
108  BpsRobot::OrderType aOrderType,
109  const QVariantList& aKeys,
110  QWidget* aParent);
111 
134  const QVariant& aZone,
135  BpsRobot::OrderType aOrderType,
136  const QVariantList& aKeys,
137  QWidget* aParent);
138 
145  bool syncStock(const QVariant& aZone, QWidget* aParent);
146 
158  bool control(const QVariant& aZone, int aOp, const QVariantMap& aInput, QVariantMap& aOutput, QWidget* aParent);
159 
166  bool lockRobot(const QVariant& aZone, QWidget* aParent);
167 
168 signals:
169 
174  void itemSynced(const QVariant& aKey);
175 
180  void itemRejected(const QVariant& aKey);
181 };
182 
183 #endif // BPSROBOTSGUI_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 BpsRobot class.
BPS order utilities.
Definition: bpsorderutils.h:19
OrderType
Type of the key/keys to process.
Definition: bpsrobot.h:60
OrderSyncMode
Order items synchronize modes.
Definition: bpsrobot.h:50
GUI robots interface.
Definition: bpsrobotsgui.h:21
bool finishOrders(const QVariant &aZone, BpsRobot::OrderType aOrderType, const QVariantList &aKeys, QWidget *aParent)
Finish order processing.
BpsOrderUtils * utils() const
bool control(const QVariant &aZone, int aOp, const QVariantMap &aInput, QVariantMap &aOutput, QWidget *aParent)
Execute robot specific operations.
void itemSynced(const QVariant &aKey)
Emitted when a item was successfully synced, e.g.
bool loadOrdertrip(const QVariant &aZone, const QVariant &aOrdertripKey, QWidget *aParent)
Load order trip into robot.
bool revokeOrders(const QVariant &aZone, BpsRobot::OrderType aOrderType, const QVariantList &aKeys, QWidget *aParent)
Revoke orders from the robot.
bool lockRobot(const QVariant &aZone, QWidget *aParent)
Lock the zone for exclusive robot access.
void itemRejected(const QVariant &aKey)
Emitted when a item was rejected by robot or because of data constraints.
bool syncOrders(const QVariant &aZone, BpsRobot::OrderType aOrderType, const QVariantList &aKeys, BpsRobot::OrderSyncMode aSyncMode, QWidget *aParent)
Synchronize orders to the robot.
bool syncStock(const QVariant &aZone, QWidget *aParent)
Import all robot stocks into the BPS stock.
BpsRobotsGui(BpsOrderUtils *aUtils, QObject *aParent=nullptr)