CTK 0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Loading...
Searching...
No Matches
ctkXnatLoginProfile.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 ctkXnatLoginProfile_h
23#define ctkXnatLoginProfile_h
24
25#include "ctkXNATCoreExport.h"
26
27#include <QScopedPointer>
28#include <QUrl>
29
30class ctkXnatLoginProfilePrivate;
31
37class CTK_XNAT_CORE_EXPORT ctkXnatLoginProfile
38{
39public:
41 ctkXnatLoginProfile(const ctkXnatLoginProfile& otherLoginProfile);
43
48 QString name() const;
49
54 void setName(const QString& profileName);
55
60 QUrl serverUrl() const;
61
66 void setServerUrl(const QUrl& serverUri);
67
72 QString userName() const;
73
78 void setUserName(const QString& userName);
79
84 QString password() const;
85
90 void setPassword(const QString& password);
91
97 bool isDefault() const;
98
103 void setDefault(bool default_);
104
105private:
107 QScopedPointer<ctkXnatLoginProfilePrivate> d_ptr;
108
109 Q_DECLARE_PRIVATE(ctkXnatLoginProfile)
110};
111
112#endif
A login profile for XNAT sessions.
QString password() const
Get the login password.
bool isDefault() const
Returns a boolean value indicating if this login profile is the default profile.
QString name() const
Get the name for this profile.
ctkXnatLoginProfile(const ctkXnatLoginProfile &otherLoginProfile)
QUrl serverUrl() const
Get the XNAT server URL.
void setUserName(const QString &userName)
Set the login user name.
void setPassword(const QString &password)
Set the login password.
void setDefault(bool default_)
Set the default login profile to this profile.
void setServerUrl(const QUrl &serverUri)
Set the XNAT server URL.
QString userName() const
Get the login user name.
void setName(const QString &profileName)
Set the name for this profile.