feat: Add GetPACSSettingAction class
This commit is contained in:
26
src/action/GetPACSSettingAction.cpp
Normal file
26
src/action/GetPACSSettingAction.cpp
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#include "GetPACSSettingAction.h"
|
||||||
|
#include "recon/ReconManager.h"
|
||||||
|
|
||||||
|
GetPACSSettingAction::GetPACSSettingAction(QObject* aParent)
|
||||||
|
: AsyncAction(aParent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
GetPACSSettingAction::~GetPACSSettingAction()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetPACSSettingAction::run()
|
||||||
|
{
|
||||||
|
bool ret = true;
|
||||||
|
ReconManager::GetStoragePoints(ret, mStoragePoints);
|
||||||
|
emit actionCompleted(ActionResult(ret?Sucessed:Failed,ret?"":tr("Fail to get PACSSettings")));
|
||||||
|
}
|
||||||
|
|
||||||
|
const QList<PACSSetting>& GetPACSSettingAction::getStoragePoints()
|
||||||
|
{
|
||||||
|
return mStoragePoints;
|
||||||
|
}
|
||||||
|
|
||||||
19
src/action/GetPACSSettingAction.h
Normal file
19
src/action/GetPACSSettingAction.h
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#ifndef EE96D432_581B_41B7_A8E5_AE67F61CC142
|
||||||
|
#define EE96D432_581B_41B7_A8E5_AE67F61CC142
|
||||||
|
|
||||||
|
#include "AsyncAction.h"
|
||||||
|
#include "recon/ProtocolStructs.h"
|
||||||
|
|
||||||
|
class GetPACSSettingAction : public AsyncAction
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit GetPACSSettingAction(QObject* aParent = nullptr);
|
||||||
|
~GetPACSSettingAction() override;
|
||||||
|
void run() override;
|
||||||
|
const QList<PACSSetting>& getStoragePoints();
|
||||||
|
private:
|
||||||
|
QList<PACSSetting> mStoragePoints;
|
||||||
|
};
|
||||||
|
#endif /* EE96D432_581B_41B7_A8E5_AE67F61CC142 */
|
||||||
Reference in New Issue
Block a user