21 #ifndef QTDCMMOVESCU_H_ 22 #define QTDCMMOVESCU_H_ 25 #include <dcmtk/ofstd/ofstd.h> 26 #include <dcmtk/ofstd/ofconapp.h> 27 #include <dcmtk/dcmnet/dicom.h> 28 #include <dcmtk/dcmnet/dimse.h> 29 #include <dcmtk/dcmnet/diutil.h> 30 #include <dcmtk/dcmdata/dcfilefo.h> 31 #include <dcmtk/dcmdata/dcuid.h> 32 #include <dcmtk/dcmdata/dcdict.h> 33 #include <dcmtk/dcmdata/cmdlnarg.h> 34 #include <dcmtk/dcmdata/dcdeftag.h> 35 #include <dcmtk/dcmdata/dcmetinf.h> 36 #include <dcmtk/dcmdata/dcuid.h> 37 #include <dcmtk/dcmdata/dcdicent.h> 38 #include <dcmtk/dcmdata/dcostrmz.h> 40 #define INCLUDE_CSTDLIB 41 #define INCLUDE_CSTDIO 42 #define INCLUDE_CSTRING 43 #define INCLUDE_CSTDARG 44 #define INCLUDE_CERRNO 45 #define INCLUDE_CCTYPE 46 #define INCLUDE_CSIGNAL 91 void setSeries (
const QStringList & series );
101 void serieMoved(
const QString & directory,
const QString & uid,
int number);
104 OFCondition
move (
const QString & uid );
108 OFCondition
addPresentationContext ( T_ASC_Parameters *params, T_ASC_PresentationContextID pid,
const char* abstractSyntax, E_TransferSyntax preferredTransferSyntax );
110 OFCondition
cmove ( T_ASC_Association * assoc,
const char *fname );
112 static OFCondition
acceptSubAssoc ( T_ASC_Network * aNet, T_ASC_Association ** assoc );
114 static OFCondition
echoSCP ( T_ASC_Association * assoc, T_DIMSE_Message * msg, T_ASC_PresentationContextID presID );
116 static OFCondition
storeSCP ( T_ASC_Association *assoc, T_DIMSE_Message *msg, T_ASC_PresentationContextID presID,
void* subOpCallbackData );
118 static void storeSCPCallback (
void* caller, T_DIMSE_StoreProgress* progress, T_DIMSE_C_StoreRQ* req,
char* imageFile, DcmDataset** imageDataSet, T_DIMSE_C_StoreRSP* rsp, DcmDataset** statusDetail );
120 static OFCondition
subOpSCP ( T_ASC_Association **subAssoc,
void * subOpCallbackData );
122 static void subOpCallback (
void * , T_ASC_Network *aNet, T_ASC_Association **subAssoc );
124 static void moveCallback (
void *caller, T_DIMSE_C_MoveRQ * req,
int responseCount, T_DIMSE_C_MoveRSP * rsp );
128 OFCondition
moveSCU ( T_ASC_Association * assoc,
const char *fname );
static OFCondition storeSCP(T_ASC_Association *assoc, T_DIMSE_Message *msg, T_ASC_PresentationContextID presID, void *subOpCallbackData)
void substituteOverrideKeys(DcmDataset &dset)
QtDcmMoveScu(QObject *parent=0)
static OFCondition echoSCP(T_ASC_Association *assoc, T_DIMSE_Message *msg, T_ASC_PresentationContextID presID)
void setImportDir(const QString &dir)
static OFCondition acceptSubAssoc(T_ASC_Network *aNet, T_ASC_Association **assoc)
void previewSlice(const QString &filename)
OFCondition move(const QString &uid)
OFCondition cmove(T_ASC_Association *assoc, const char *fname)
void setImageId(const QString &id)
void updateProgress(int i)
OFCondition moveSCU(T_ASC_Association *assoc, const char *fname)
OFCondition addPresentationContext(T_ASC_Parameters *params, T_ASC_PresentationContextID pid, const char *abstractSyntax, E_TransferSyntax preferredTransferSyntax)
static void moveCallback(void *caller, T_DIMSE_C_MoveRQ *req, int responseCount, T_DIMSE_C_MoveRSP *rsp)
T_ASC_PresentationContextID presId
void serieMoved(const QString &directory, const QString &uid, int number)
T_ASC_Association * assoc
static OFCondition subOpSCP(T_ASC_Association **subAssoc, void *subOpCallbackData)
void setSeries(const QStringList &series)
static void storeSCPCallback(void *caller, T_DIMSE_StoreProgress *progress, T_DIMSE_C_StoreRQ *req, char *imageFile, DcmDataset **imageDataSet, T_DIMSE_C_StoreRSP *rsp, DcmDataset **statusDetail)
void setMode(eMoveMode eMoveMode)
void setOutputDir(const QString &dir)
void addOverrideKey(const QString &key)
static void subOpCallback(void *, T_ASC_Network *aNet, T_ASC_Association **subAssoc)