#ifndef STHREADSENDDICOM_H #define STHREADSENDDICOM_H #include #include #include #include #include "qsthread.h" #include "common.h" #include "sdcmworklist.h" #ifdef _SYOLOV5 #include "syolov5.h" #endif #include #include #include #include "sdatabase.h" using namespace SUTIL; #include "cscallbacksendprogress.h" class SThreadSendDICOM : public QSThread { Q_OBJECT public: explicit SThreadSendDICOM(); virtual ~SThreadSendDICOM(); virtual void InnerRun(); virtual void Init(); void SetAutoSendImage(); void SetSendImageList(const QList listFile); void SetCheckSendImageList(const QList listFile); void ClearListAutoSend(vector& list); bool IsSendFailed(); void SetExitAutoSend(); void SetExitSendImageList(); bool IsExitSendImageList(); void AutoSend(); void SendImageList(); vector GetListAutoSendCompleteFile(); vector GetListImageSendCompleteFile(); void ClearListCompleteFile(); signals: void UpdateSendFailed(); void SetSendProgress(int nProgress, int nTotal); protected: bool m_bExitAutoSend; bool m_bExitSendImageList; bool m_bSendFailed; int m_nSendPrev; QMutex m_LockState; QList m_ListSendFile; vector m_ListAutoSendCompleteFile; vector m_ListImageSendCompleteFile; QElapsedTimer m_TimeAutoSend; CSCallbackSendProgress* m_pCallback; bool m_bExecAutoSend; bool m_bExecCheckSendImageList; }; #endif // STHREADSENDDICOM_H