CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkXnatProject.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 ctkctkXnatProject_h
23 #define ctkctkXnatProject_h
24 
25 #include "ctkXNATCoreExport.h"
26 
27 #include "ctkXnatObject.h"
29 
30 class ctkXnatDataModel;
31 class ctkXnatProjectPrivate;
32 
36 class CTK_XNAT_CORE_EXPORT ctkXnatProject : public ctkXnatObject
37 {
38 
39 public:
40 
41  ctkXnatProject(ctkXnatObject* parent = 0, const QString& schemaType = ctkXnatDefaultSchemaTypes::XSI_PROJECT);
42 
43  virtual ~ctkXnatProject();
44 
45  virtual QString resourceUri() const;
46 
47  virtual QString childDataType() const;
48 
49  const QString secondaryId() const;
50  void setSecondaryId(const QString& secondaryId);
51 
52  const QString piFirstName() const;
53  void setPiFirstName(const QString& piFirstName);
54 
55  const QString piLastName() const;
56  void setPiLastName(const QString& piLastName);
57 
58  QString projectDescription() const;
59  void setProjectDescription(const QString &description);
60 
61  void reset();
62 
63  static const QString SECONDARY_ID;
64  static const QString DESCRIPTION;
65  static const QString PI_FIRSTNAME;
66  static const QString PI_LASTNAME;
67 
68 private:
69 
70  virtual void fetchImpl();
71 
72  virtual void downloadImpl(const QString&);
73 
74  Q_DECLARE_PRIVATE(ctkXnatProject)
75 };
76 
77 #endif
ctkXnatDefaultSchemaTypes::XSI_PROJECT
static QString XSI_PROJECT
Definition: ctkXnatDefaultSchemaTypes.h:34
ctkXnatObject::reset
virtual void reset()
ctkXnatObject
Definition: ctkXnatObject.h:44
ctkXnatDefaultSchemaTypes.h
ctkXnatProject::PI_LASTNAME
static const QString PI_LASTNAME
Definition: ctkXnatProject.h:66
ctkXnatObject::resourceUri
virtual QString resourceUri() const =0
ctkXnatDataModel
The ctkXnatDataModel class reprents the root object in a XNAT data hierarchy.
Definition: ctkXnatDataModel.h:39
ctkXnatProject::DESCRIPTION
static const QString DESCRIPTION
Definition: ctkXnatProject.h:64
ctkXnatProject::PI_FIRSTNAME
static const QString PI_FIRSTNAME
Definition: ctkXnatProject.h:65
ctkXnatProject::SECONDARY_ID
static const QString SECONDARY_ID
Definition: ctkXnatProject.h:63
ctkXnatObject.h
ctkXnatObject::childDataType
virtual QString childDataType() const
Gets a human readable name of the child object type.
ctkXnatProject
Definition: ctkXnatProject.h:36