CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkXnatSettings.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 ctkXnatSettings_h
23 #define ctkXnatSettings_h
24 
25 #include "ctkXNATCoreExport.h"
26 
27 #include <QMap>
28 #include <QString>
29 
31 
35 class CTK_XNAT_CORE_EXPORT ctkXnatSettings
36 {
37 public:
38  virtual QString defaultDirectory() const = 0;
39  virtual void setDefaultDirectory(const QString& dir) = 0;
40 
41  virtual QString defaultWorkDirectory() const = 0;
42  virtual void setDefaultWorkDirectory(const QString& workDir) = 0;
43 
44  virtual QString workSubdirectory() const;
45 
46  virtual QMap<QString, ctkXnatLoginProfile*> loginProfiles() const = 0;
47  virtual void setLoginProfiles(QMap<QString, ctkXnatLoginProfile*> loginProfiles) = 0;
48 
49  virtual ctkXnatLoginProfile* loginProfile(QString profileName) const = 0;
50  virtual void setLoginProfile(QString profileName, ctkXnatLoginProfile*) = 0;
51 
52  virtual void removeLoginProfile(QString profileName) = 0;
53 
55 
56 };
57 
58 #endif
ctkXnatSettings::setLoginProfiles
virtual void setLoginProfiles(QMap< QString, ctkXnatLoginProfile * > loginProfiles)=0
ctkXnatSettings::defaultWorkDirectory
virtual QString defaultWorkDirectory() const =0
ctkXnatSettings::loginProfiles
virtual QMap< QString, ctkXnatLoginProfile * > loginProfiles() const =0
ctkXnatSettings::setDefaultWorkDirectory
virtual void setDefaultWorkDirectory(const QString &workDir)=0
ctkXnatSettings
Definition: ctkXnatSettings.h:36
ctkXnatSettings::defaultLoginProfile
virtual ctkXnatLoginProfile * defaultLoginProfile() const =0
ctkXnatSettings::setLoginProfile
virtual void setLoginProfile(QString profileName, ctkXnatLoginProfile *)=0
ctkXnatSettings::defaultDirectory
virtual QString defaultDirectory() const =0
ctkXnatSettings::setDefaultDirectory
virtual void setDefaultDirectory(const QString &dir)=0
ctkXnatSettings::workSubdirectory
virtual QString workSubdirectory() const
ctkXnatLoginProfile
A login profile for XNAT sessions.
Definition: ctkXnatLoginProfile.h:38
ctkXnatSettings::removeLoginProfile
virtual void removeLoginProfile(QString profileName)=0
ctkXnatSettings::loginProfile
virtual ctkXnatLoginProfile * loginProfile(QString profileName) const =0