ctkXnatLoginProfile.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #ifndef ctkXnatLoginProfile_h
  16. #define ctkXnatLoginProfile_h
  17. #include "ctkXNATWidgetsExport.h"
  18. #include <QString>
  19. class CTK_XNAT_WIDGETS_EXPORT ctkXnatLoginProfile
  20. {
  21. public:
  22. explicit ctkXnatLoginProfile();
  23. virtual ~ctkXnatLoginProfile();
  24. QString name() const;
  25. void setName(const QString& profileName);
  26. QString serverUri() const;
  27. void setServerUri(const QString& serverUri);
  28. QString userName() const;
  29. void setUserName(const QString& userName);
  30. QString password() const;
  31. void setPassword(const QString& password);
  32. bool isDefault() const;
  33. void setDefault(const bool& default_);
  34. private:
  35. QString m_name;
  36. QString m_serverUri;
  37. QString m_userName;
  38. QString m_password;
  39. bool m_default;
  40. };
  41. #endif