CommonLocationsProvider.h 512 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2021, Dex♪ <dexes.ttp@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/DeprecatedString.h>
  8. #include <AK/Forward.h>
  9. #include <LibGUI/Forward.h>
  10. #include <sys/types.h>
  11. namespace GUI {
  12. class CommonLocationsProvider {
  13. public:
  14. struct CommonLocation {
  15. DeprecatedString name;
  16. DeprecatedString path;
  17. };
  18. static ErrorOr<void> load_from_json(StringView json_path);
  19. static Vector<CommonLocation> const& common_locations();
  20. };
  21. }