ctkXnatSettings.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*=============================================================================
  2. Plugin: org.commontk.xnat
  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. class CTK_XNAT_CORE_EXPORT ctkXnatSettings
  22. {
  23. public:
  24. virtual QString getDefaultDirectory() const = 0;
  25. virtual void setDefaultDirectory(const QString& dir) = 0;
  26. virtual QString getDefaultWorkDirectory() const = 0;
  27. virtual void setDefaultWorkDirectory(const QString& workDir) = 0;
  28. virtual QString getWorkSubdirectory() const;
  29. virtual QMap<QString, ctkXnatLoginProfile*> getLoginProfiles() const = 0;
  30. virtual void setLoginProfiles(QMap<QString, ctkXnatLoginProfile*> loginProfiles) = 0;
  31. virtual ctkXnatLoginProfile* getLoginProfile(QString profileName) const = 0;
  32. virtual void setLoginProfile(QString profileName, ctkXnatLoginProfile*) = 0;
  33. virtual void removeLoginProfile(QString profileName) = 0;
  34. virtual ctkXnatLoginProfile* getDefaultLoginProfile() const = 0;
  35. protected:
  36. explicit ctkXnatSettings();
  37. virtual ~ctkXnatSettings();
  38. };
  39. #endif