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);
63 Q_INVOKABLE
void setHost(
const QString& host );
64 Q_INVOKABLE QString
host()
const;
67 Q_INVOKABLE
int port()
const;
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 );
118 QScopedPointer<ctkDICOMRetrievePrivate>
d_ptr;
124 friend class ctkDICOMRetrieveSCUPrivate;
ctkDICOMRetrieve(QObject *parent=0)
Q_INVOKABLE QString host() const
Q_INVOKABLE QSharedPointer< ctkDICOMDatabase > database() const
void progress(const QString &message)
Q_INVOKABLE bool keepAssociationOpen()
Q_INVOKABLE QString callingAETitle() const
virtual ~ctkDICOMRetrieve()
void setDatabase(QSharedPointer< ctkDICOMDatabase > dicomDatabase)
Q_INVOKABLE bool moveSeries(const QString &studyInstanceUID, const QString &seriesInstanceUID)
Use CMOVE to ask peer host to store data to move destination.
Q_INVOKABLE void setPort(int port)
[0, 65365] port on peer host - e.g. 11112
Q_INVOKABLE void setWasCanceled(const bool wasCanceled)
void debug(const QString &message)
Q_INVOKABLE int port() const
Q_INVOKABLE void cancel()
Cancel the current operation.
QScopedPointer< ctkDICOMRetrievePrivate > d_ptr
Q_INVOKABLE void setHost(const QString &host)
peer hostname being connected to
Q_INVOKABLE bool getSeries(const QString &studyInstanceUID, const QString &seriesInstanceUID)
Use CGET to ask peer host to store data to us.
void progress(int progress)
Q_INVOKABLE bool wasCanceled()
Q_INVOKABLE void setDatabase(ctkDICOMDatabase &dicomDatabase)
Q_INVOKABLE QString moveDestinationAETitle() const
void done(const bool &error)
Q_INVOKABLE void setCalledAETitle(const QString &calledAETitle)
Q_INVOKABLE bool getStudy(const QString &studyInstanceUID)
Use CGET to ask peer host to store data to us.
Q_INVOKABLE void setMoveDestinationAETitle(const QString &moveDestinationAETitle)
Q_INVOKABLE QString calledAETitle() const
Q_INVOKABLE void setKeepAssociationOpen(const bool keepOpen)
Q_INVOKABLE void setCallingAETitle(const QString &callingAETitle)
void error(const QString &message)
Signal is emitted inside the retrieve() function. It send any error messages.
Q_INVOKABLE bool moveStudy(const QString &studyInstanceUID)
Use CMOVE to ask peer host to store data to move destination.