添加管控软件和相机的通讯
This commit is contained in:
@@ -13,6 +13,7 @@ class ProductionWorker : public QObject
|
||||
public:
|
||||
explicit ProductionWorker(QObject *parent = nullptr);
|
||||
void requestStopImmediate();
|
||||
void requestPauseImmediate();
|
||||
|
||||
public slots:
|
||||
void requestStart(int orderId);
|
||||
@@ -26,6 +27,9 @@ public slots:
|
||||
void requestMarkNg();
|
||||
void requestRestore();
|
||||
void requestShutdown();
|
||||
void updateVisionAvailability(bool ready, bool busy, const QString &session);
|
||||
void receiveVisionResult(const QJsonObject &result);
|
||||
void requestVisionSnapshot();
|
||||
|
||||
signals:
|
||||
void stateChanged(ProductionService::State state, const QString &name);
|
||||
@@ -42,6 +46,10 @@ signals:
|
||||
void timeoutRecoveryRequired(const QString &state, const QString &message);
|
||||
void recoveryCompleted(const QString &mode);
|
||||
void shutdownReady();
|
||||
void visionMeasureRequested(const QJsonObject &request);
|
||||
void visionCancelRequested(const QString &requestId);
|
||||
void visionCycleChanged(const QJsonObject &cycle);
|
||||
void visionProductionActiveChanged(bool active);
|
||||
|
||||
private:
|
||||
void ensureService();
|
||||
@@ -49,6 +57,7 @@ private:
|
||||
|
||||
ProductionService *m_service;
|
||||
std::atomic_bool m_stopRequested;
|
||||
std::atomic_bool m_pauseRequested;
|
||||
};
|
||||
|
||||
#endif // PRODUCTIONWORKER_H
|
||||
|
||||
Reference in New Issue
Block a user