ctkXnatLoginProfile.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*=============================================================================
  2. Library: CTK
  3. Copyright (c) University College London,
  4. Centre for Medical Image Computing
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. =============================================================================*/
  15. #include "ctkXnatLoginProfile.h"
  16. ctkXnatLoginProfile::ctkXnatLoginProfile()
  17. {
  18. m_default = false;
  19. }
  20. ctkXnatLoginProfile::~ctkXnatLoginProfile()
  21. {
  22. }
  23. QString ctkXnatLoginProfile::name() const
  24. {
  25. return m_name;
  26. }
  27. void ctkXnatLoginProfile::setName(const QString& name)
  28. {
  29. m_name = name;
  30. }
  31. QString ctkXnatLoginProfile::serverUri() const
  32. {
  33. return m_serverUri;
  34. }
  35. void ctkXnatLoginProfile::setServerUri(const QString& serverUri)
  36. {
  37. m_serverUri = serverUri;
  38. }
  39. QString ctkXnatLoginProfile::userName() const
  40. {
  41. return m_userName;
  42. }
  43. void ctkXnatLoginProfile::setUserName(const QString& userName)
  44. {
  45. m_userName = userName;
  46. }
  47. QString ctkXnatLoginProfile::password() const
  48. {
  49. return m_password;
  50. }
  51. void ctkXnatLoginProfile::setPassword(const QString& password)
  52. {
  53. m_password = password;
  54. }
  55. bool ctkXnatLoginProfile::isDefault() const
  56. {
  57. return m_default;
  58. }
  59. void ctkXnatLoginProfile::setDefault(const bool& default_)
  60. {
  61. m_default = default_;
  62. }