Update to dms control phase1.

This commit is contained in:
sunwen
2023-08-21 14:22:41 +08:00
parent d1dc5df680
commit 20fb814608
59 changed files with 2538 additions and 904 deletions

39
src/recon/ReconManager.h Normal file
View File

@@ -0,0 +1,39 @@
#ifndef RECONMANAGER_H
#define RECONMANAGER_H
#include <QObject>
namespace Recon
{
class ReconClient;
}
class ReconManager : public QObject
{
Q_OBJECT
public:
static ReconManager* getInstance();
explicit ReconManager(QObject* aParent = nullptr);
~ReconManager();
public:
void setReconIpAndPort(const QString& aIp, const QString& aPort);
public slots:
void createEmptyScan(const QString& aScanID, const QString& aPath);
void createScan(const QString& aScanID, const QString& aPatientID, const QString& aReferenceID, const QString& aPath);
void queryReconStatus(const QStringList& aScanIDs);
private:
void init();
signals:
void createEmptyScanResponsed(bool aResult, const QString& aScanID, const QString& aMessage = "");
void createScanResponsed(bool aResult, const QString& aScanID, const QString& aMessage = "");
void queryReconStateResponsed(const QMap<QString, int> aResult);
private:
Recon::ReconClient* mReconClient;
};
#endif // RECONMANAGER_H