2021-04-26 18:18:57 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Dex♪ <dexes.ttp@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-12-04 18:02:33 +00:00
|
|
|
#include <AK/DeprecatedString.h>
|
2021-04-26 18:18:57 +02:00
|
|
|
#include <AK/Forward.h>
|
|
|
|
#include <LibGUI/Forward.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
class CommonLocationsProvider {
|
|
|
|
public:
|
|
|
|
struct CommonLocation {
|
2022-12-04 18:02:33 +00:00
|
|
|
DeprecatedString name;
|
|
|
|
DeprecatedString path;
|
2021-04-26 18:18:57 +02:00
|
|
|
};
|
|
|
|
|
2022-12-04 18:02:33 +00:00
|
|
|
static void load_from_json(DeprecatedString const& json_path);
|
2022-04-01 20:58:27 +03:00
|
|
|
static Vector<CommonLocation> const& common_locations();
|
2021-04-26 18:18:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|