ToolPrefs.h 738 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include <Atomic/Core/Object.h>
  3. using namespace Atomic;
  4. namespace ToolCore
  5. {
  6. class ToolPrefs : public Object
  7. {
  8. OBJECT(ToolPrefs)
  9. public:
  10. ToolPrefs(Context* context);
  11. virtual ~ToolPrefs();
  12. const String& GetAndroidSDKPath() { return androidSDKPath_; }
  13. const String& GetJDKRootPath() { return jdkRootPath_; }
  14. const String& GetAntPath();
  15. void SetAndroidSDKPath(const String& path) { androidSDKPath_ = path; }
  16. void SetJDKRootPath(const String& path) { jdkRootPath_ = path; }
  17. void SetAntPath(const String& path) { antPath_ = path; }
  18. String GetPrefsPath();
  19. void Load();
  20. void Save();
  21. private:
  22. String androidSDKPath_;
  23. String jdkRootPath_;
  24. String antPath_;
  25. };
  26. }