 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
22 #ifndef CTKXNATSESSION_H
23 #define CTKXNATSESSION_H
25 #include "ctkXNATCoreExport.h"
27 #include <QScopedPointer>
31 #include <QVariantMap>
37 class ctkXnatSessionPrivate;
244 const QString& resource,
300 QScopedPointer<ctkXnatSessionPrivate>
d_ptr;
305 Q_SLOT
void emitTimeOut();
ctkXnatSession(const ctkXnatLoginProfile &loginProfile)
QString password() const
Get the password for this XNAT session.
void setDefaultDownloadDir(const QString &path)
Sets the default location where files will be saved after being downloaded.
QUuid httpPut(const QString &resource, const UrlParameters ¶meters=UrlParameters(), const HttpRawHeaders &rawHeaders=HttpRawHeaders())
TODO.
void remove(ctkXnatObject *object)
Q_SIGNAL void aboutToTimeOut()
Signals that the session will time out in one minute.
Q_SIGNAL void sessionAboutToBeClosed()
Signals that the session is about to be closed.
ctkXnatLoginProfile loginProfile() const
Get the current login profile for this session object.
void upload(ctkXnatFile *xnatFile, const UrlParameters ¶meters=UrlParameters(), const HttpRawHeaders &rawHeaders=HttpRawHeaders())
bool exists(const ctkXnatObject *object)
QUuid httpHead(const QString &resourceUri)
Sends a http HEAD request to the xnat instance.
Q_SIGNAL void timedOut()
Signals that the session has timed out.
void close()
Closes this XNAT session.
QString version() const
Get the XNAT server version.
void processResult(QUuid queryId, QList< QVariantMap > parameters)
QUrl url() const
Get XNAT server url.
QScopedPointer< ctkXnatSessionPrivate > d_ptr
const QMap< QByteArray, QByteArray > httpHeadSync(const QUuid &uuid)
Reads the result of a head request.
QMap< QByteArray, QByteArray > HttpRawHeaders
QUuid httpGet(const QString &resource, const UrlParameters ¶meters=UrlParameters(), const HttpRawHeaders &rawHeaders=HttpRawHeaders())
TODO.
QList< QVariantMap > httpSync(const QUuid &uuid)
TODO.
The ctkXnatDataModel class reprents the root object in a XNAT data hierarchy.
bool isOpen() const
Returns the open state of this XNAT session.
QDateTime expirationDate() const
Get the expiration date for this XNAT session.
QString sessionId() const
Get the sessionId for this XNAT session.
QString userName() const
Get the user name for this XNAT session.
QMap< QString, QString > UrlParameters
void setHttpNetworkProxy(const QNetworkProxy &proxy)
Sets a network proxy that will be used to connect with XNAT.
QString defaultDownloadDir() const
returns the default download location
The ctkXnatSession class reprents a session object associated with a specific XNAT connection.
A login profile for XNAT sessions.
Q_SIGNAL void progress(QUuid, double)
Q_SIGNAL void sessionRenewed(const QDateTime &expirationDate)
Signals that the session was re-newed.
QList< ctkXnatObject * > httpResults(const QUuid &uuid, const QString &schemaType)
TODO.
void onProgress(QUuid queryId, double onProgress)
void download(const QString &fileName, const QString &resource, const UrlParameters ¶meters=UrlParameters(), const HttpRawHeaders &rawHeaders=HttpRawHeaders())
Q_SIGNAL void sessionOpened()
Signals that the session was just opened.
void open()
Open a new XNAT session.
ctkXnatDataModel * dataModel() const
QDateTime renew()
Re-new the XNAT session.