Documents > BPS V2 C++ API
bpsrobotsgui.h
Go to the documentation of this file.
00001 
00004 #ifndef BPSROBOTSGUI_H
00005 #define BPSROBOTSGUI_H
00006 
00007 #include "bpsgui_global.h"
00008 #include "bpsrobot.h"
00009 #include <QWidget>
00010 #include <QVariantList>
00011 
00012 class BpsRobots;
00013 class QWidget;
00014 
00020 class BPSGUI_EXPORT BpsRobotsGui : public QObject
00021 {
00022     Q_OBJECT
00023     BPS_PRIVATE(BpsRobotsGui)
00024 
00025 public:
00030     BpsRobotsGui(BpsRobots* aRobots, QObject* aParent = 0);
00031 
00032     virtual ~BpsRobotsGui();
00033 
00037     BpsRobots* robots() const;
00038 
00060     bool syncOrders(
00061         const QVariant& aZone, 
00062         BpsRobot::OrderType aOrderType, 
00063         const QVariantList& aKeys,
00064         BpsRobot::OrderSyncMode aSyncMode,
00065         QWidget* aParent);
00066 
00086     bool revokeOrders(
00087         const QVariant& aZone, 
00088         BpsRobot::OrderType aOrderType, 
00089         const QVariantList& aKeys, 
00090         QWidget* aParent);
00091 
00098     bool syncStock(const QVariant& aZone, QWidget* aParent);
00099 
00106     bool lockRobot(const QVariant& aZone, QWidget* aParent);
00107 
00108 signals:
00109 
00114     void itemSynced(const QVariant& aKey);
00115 
00120     void itemRejected(const QVariant& aKey);
00121 };
00122 
00123 #endif // BPSROBOTSGUI_H