52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
#ifndef RECONMANAGER_H
|
|
#define RECONMANAGER_H
|
|
|
|
#include <QObject>
|
|
|
|
class QTimer;
|
|
|
|
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);
|
|
bool isConnected();
|
|
|
|
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);
|
|
void setPacsSettings(const QString& aClientAETitle, const QString& aServerAETitle, const QString& aServerIP, int aServerPort);
|
|
void checkReconConnection();
|
|
void getReconVersion();
|
|
|
|
private:
|
|
void init();
|
|
|
|
signals:
|
|
void restartCreatReconRecord();
|
|
void createEmptyScanResponsed(bool aResult, const QString& aScanID, const QString& aMessage = "");
|
|
void createScanResponsed(bool aResult, const QString& aScanID, const QString& aMessage = "");
|
|
void queryReconStateResponsed(bool aResult, const QVariant& aData);
|
|
void setPacsSettingsResponsed(bool aResult, const QVariant& aMessage);
|
|
void checkReconConnectionResponsed(bool aResult);
|
|
void getReconVersionResponsed(const QString& aResult);
|
|
|
|
private:
|
|
Recon::ReconClient* mReconClient;
|
|
QTimer* mTimer;
|
|
bool mIsConnected;
|
|
};
|
|
|
|
#endif // RECONMANAGER_H
|