ctkXnatSettings.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*=============================================================================
  2. Library: XNAT/Core
  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 ctkXnatSettings_h
  16. #define ctkXnatSettings_h
  17. #include "ctkXNATCoreExport.h"
  18. #include <QMap>
  19. #include <QString>
  20. class ctkXnatLoginProfile;
  21. /**
  22. * @ingroup XNAT_Core
  23. */
  24. class CTK_XNAT_CORE_EXPORT ctkXnatSettings
  25. {
  26. public:
  27. virtual QString defaultDirectory() const = 0;
  28. virtual void setDefaultDirectory(const QString& dir) = 0;
  29. virtual QString defaultWorkDirectory() const = 0;
  30. virtual void setDefaultWorkDirectory(const QString& workDir) = 0;
  31. virtual QString workSubdirectory() const;
  32. virtual QMap<QString, ctkXnatLoginProfile*> loginProfiles() const = 0;
  33. virtual void setLoginProfiles(QMap<QString, ctkXnatLoginProfile*> loginProfiles) = 0;
  34. virtual ctkXnatLoginProfile* loginProfile(QString profileName) const = 0;
  35. virtual void setLoginProfile(QString profileName, ctkXnatLoginProfile*) = 0;
  36. virtual void removeLoginProfile(QString profileName) = 0;
  37. virtual ctkXnatLoginProfile* defaultLoginProfile() const = 0;
  38. };
  39. #endif