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:
parent
fddcaafe5f
commit
91c210c39a
6 changed files with 132 additions and 23 deletions
26
Userland/Libraries/LibGUI/CommonLocationsProvider.h
Normal file
26
Userland/Libraries/LibGUI/CommonLocationsProvider.h
Normal 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();
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue