CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkXnatScan.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  Library: XNAT/Core
4 
5  Copyright (c) University College London,
6  Centre for Medical Image Computing
7 
8  Licensed under the Apache License, Version 2.0 (the "License");
9  you may not use this file except in compliance with the License.
10  You may obtain a copy of the License at
11 
12  http://www.apache.org/licenses/LICENSE-2.0
13 
14  Unless required by applicable law or agreed to in writing, software
15  distributed under the License is distributed on an "AS IS" BASIS,
16  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  See the License for the specific language governing permissions and
18  limitations under the License.
19 
20 =============================================================================*/
21 
22 #ifndef ctkXnatScan_h
23 #define ctkXnatScan_h
24 
25 #include "ctkXNATCoreExport.h"
26 
27 #include "ctkXnatObject.h"
29 
30 class ctkXnatConnection;
31 class ctkXnatScanFolder;
32 class ctkXnatScanPrivate;
33 
37 class CTK_XNAT_CORE_EXPORT ctkXnatScan : public ctkXnatObject
38 {
39 
40 public:
41 
42  ctkXnatScan(ctkXnatObject* parent = 0, const QString& schemaType = ctkXnatDefaultSchemaTypes::XSI_SCAN);
43 
44  virtual ~ctkXnatScan();
45 
46  void setQuality(const QString& quality);
47  QString quality() const;
48 
49  void setSeriesDescription(const QString& seriesDescription);
50  QString seriesDescription() const;
51 
52  void setType (const QString& type);
53  QString type () const;
54 
55  virtual QString resourceUri() const;
56 
57  void reset();
58 
59  static const QString QUALITY;
60  static const QString SERIES_DESCRIPTION;
61  static const QString TYPE;
62 
63 private:
64 
65  friend class qRestResult;
66 
67  virtual void fetchImpl();
68 
69  virtual void downloadImpl(const QString&);
70 
71  Q_DECLARE_PRIVATE(ctkXnatScan)
72 };
73 
74 #endif
virtual ~ctkXnatScan()
virtual QString resourceUri() const
QString quality() const
void setSeriesDescription(const QString &seriesDescription)
void setType(const QString &type)
QString type() const
static const QString SERIES_DESCRIPTION
Definition: ctkXnatScan.h:60
static const QString QUALITY
Definition: ctkXnatScan.h:59
static const QString TYPE
Definition: ctkXnatScan.h:61
ctkXnatScan(ctkXnatObject *parent=0, const QString &schemaType=ctkXnatDefaultSchemaTypes::XSI_SCAN)
void setQuality(const QString &quality)
void reset()
QString seriesDescription() const