21 #ifndef __ctkDICOMRetrieve_h 22 #define __ctkDICOMRetrieve_h 28 #include <QSharedPointer> 30 #include "ctkDICOMCoreExport.h" 35 class ctkDICOMRetrievePrivate;
41 Q_PROPERTY(QString callingAETitle READ callingAETitle WRITE setCallingAETitle);
42 Q_PROPERTY(QString calledAETitle READ calledAETitle WRITE setCallingAETitle);
43 Q_PROPERTY(QString host READ host WRITE setHost);
44 Q_PROPERTY(
int port READ port WRITE setPort);
45 Q_PROPERTY(QString moveDestinationAETitle READ moveDestinationAETitle WRITE setMoveDestinationAETitle);
46 Q_PROPERTY(
bool keepAssociationOpen READ keepAssociationOpen WRITE setKeepAssociationOpen);
47 Q_PROPERTY(
bool wasCanceled READ wasCanceled WRITE setWasCanceled);
56 Q_INVOKABLE
void setCallingAETitle(
const QString& callingAETitle );
57 Q_INVOKABLE QString callingAETitle()
const;
60 Q_INVOKABLE
void setCalledAETitle(
const QString& calledAETitle );
61 Q_INVOKABLE QString calledAETitle()
const;
63 Q_INVOKABLE
void setHost(
const QString& host );
64 Q_INVOKABLE QString host()
const;
66 Q_INVOKABLE
void setPort(
int port );
67 Q_INVOKABLE
int port()
const;
71 Q_INVOKABLE
void setMoveDestinationAETitle(
const QString& moveDestinationAETitle );
72 Q_INVOKABLE QString moveDestinationAETitle()
const;
75 Q_INVOKABLE
void setKeepAssociationOpen(
const bool keepOpen);
76 Q_INVOKABLE
bool keepAssociationOpen();
79 Q_INVOKABLE
void setWasCanceled(
const bool wasCanceled);
80 Q_INVOKABLE
bool wasCanceled();
84 void setDatabase(QSharedPointer<ctkDICOMDatabase> dicomDatabase);
85 Q_INVOKABLE QSharedPointer<ctkDICOMDatabase> database()
const;
89 Q_INVOKABLE
bool moveSeries(
const QString& studyInstanceUID,
90 const QString& seriesInstanceUID );
92 Q_INVOKABLE
bool moveStudy(
const QString& studyInstanceUID );
94 Q_INVOKABLE
bool getSeries(
const QString& studyInstanceUID,
95 const QString& seriesInstanceUID );
97 Q_INVOKABLE
bool getStudy(
const QString& studyInstanceUID );
99 Q_INVOKABLE
void cancel();
104 void progress(
int progress);
107 void progress(
const QString& message);
110 void debug(
const QString& message);
112 void error(
const QString& message);
115 void done(
const bool& error);
118 QScopedPointer<ctkDICOMRetrievePrivate>
d_ptr;
124 friend class ctkDICOMRetrieveSCUPrivate;
QScopedPointer< ctkDICOMRetrievePrivate > d_ptr