feat: Add GetPACSSettingAction class

This commit is contained in:
chenhuijun
2024-07-31 15:53:11 +08:00
parent 16575959a9
commit 4fb0298968
2 changed files with 45 additions and 0 deletions

View 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;
}

View 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 */