ToolPrefs.h 1018 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include <Atomic/Core/Object.h>
  9. using namespace Atomic;
  10. namespace ToolCore
  11. {
  12. class ToolPrefs : public Object
  13. {
  14. OBJECT(ToolPrefs)
  15. public:
  16. ToolPrefs(Context* context);
  17. virtual ~ToolPrefs();
  18. const String& GetAndroidSDKPath() { return androidSDKPath_; }
  19. const String& GetJDKRootPath() { return jdkRootPath_; }
  20. const String& GetAntPath();
  21. void SetAndroidSDKPath(const String& path) { androidSDKPath_ = path; }
  22. void SetJDKRootPath(const String& path) { jdkRootPath_ = path; }
  23. void SetAntPath(const String& path) { antPath_ = path; }
  24. String GetPrefsPath();
  25. void Load();
  26. void Save();
  27. private:
  28. String androidSDKPath_;
  29. String jdkRootPath_;
  30. String antPath_;
  31. };
  32. }