CommonLocationsProvider.h 453 B

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