1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibGUI: Make common locations configurable

This commit is contained in:
DexesTTP 2021-04-26 18:18:57 +02:00 committed by Andreas Kling
parent fddcaafe5f
commit 91c210c39a
6 changed files with 132 additions and 23 deletions

View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2021, Dex <dexes.ttp@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Forward.h>
#include <LibGUI/Forward.h>
#include <sys/types.h>
namespace GUI {
class CommonLocationsProvider {
public:
struct CommonLocation {
String name;
String path;
};
static void load_from_json(const String& json_path);
static const Vector<CommonLocation>& common_locations();
};
}