ctkLocationManager_p.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*=============================================================================
  2. Library: CTK
  3. Copyright (c) German Cancer Research Center,
  4. Division of Medical and Biological Informatics
  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 CTKLOCATIONMANAGER_H
  16. #define CTKLOCATIONMANAGER_H
  17. #include <QString>
  18. class ctkBasicLocation;
  19. /**
  20. * This class is used to manage the various Locations for BlueBerry.
  21. * <p>
  22. * Clients may not extend this class.
  23. * </p>
  24. * @noextend This class is not intended to be subclassed by clients.
  25. */
  26. class ctkLocationManager
  27. {
  28. public:
  29. static const QString READ_ONLY_AREA_SUFFIX; // = ".readOnly";
  30. // configuration area file/dir names
  31. static const QString CONFIG_FILE; // = "config.ini";
  32. static const QString CTK_PROPERTIES; // = "ctk.properties";
  33. /**
  34. * Initializes the QFileInfo objects for the ctkLocationManager.
  35. */
  36. static void initializeLocations();
  37. /**
  38. * Returns the user ctkLocation object
  39. * @return the user ctkLocation object
  40. */
  41. static ctkBasicLocation* getUserLocation();
  42. /**
  43. * Returns the configuration ctkLocation object
  44. * @return the configuration ctkLocation object
  45. */
  46. static ctkBasicLocation* getConfigurationLocation();
  47. /**
  48. * Returns the install ctkLocation object
  49. * @return the install ctkLocation object
  50. */
  51. static ctkBasicLocation* getInstallLocation();
  52. /**
  53. * Returns the instance ctkLocation object
  54. * @return the instance ctkLocation object
  55. */
  56. static ctkBasicLocation* getInstanceLocation();
  57. static ctkBasicLocation* getCTKHomeLocation();
  58. };
  59. #endif // CTKLOCATIONMANAGER_H