feat: Add CEchoAction class

This commit is contained in:
chenhuijun
2024-07-31 15:45:32 +08:00
parent 0766d588f9
commit 3a9d175533
2 changed files with 126 additions and 0 deletions

29
src/dicom/CEchoAction.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef AAD49461_3276_47D6_B033_156B91C94F74
#define AAD49461_3276_47D6_B033_156B91C94F74
#include "action/AsyncAction.h"
#include "CEchoSetting.h"
#include <QList>
enum CEchoType{
LOCAL,REMOTE
};
class CEchoAction : public AsyncAction
{
Q_OBJECT
public:
explicit CEchoAction(QObject* aParent = nullptr);
~CEchoAction() override;
void run() override;
void addCEchoActionItem(const CEchoSetting& aSetting);
signals:
void actionStepCompleted(const ActionResult& aResult);
void actionStepStart(const QString& aMessage);
private:
QList<CEchoSetting> mSettings;
void doCompletedEmit(const ActionResult& aResult, size_t aIndex, size_t aLength);
};
#endif /* AAD49461_3276_47D6_B033_156B91C94F74 */