CommonLocationsProvider.h 476 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/Forward.h>
  8. #include <AK/String.h>
  9. #include <LibGUI/Forward.h>
  10. #include <sys/types.h>
  11. namespace GUI {
  12. class CommonLocationsProvider {
  13. public:
  14. struct CommonLocation {
  15. String name;
  16. String path;
  17. };
  18. static void load_from_json(String const& json_path);
  19. static Vector<CommonLocation> const& common_locations();
  20. };
  21. }