mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
AppFile: Add helpers for dealing with AppFile paths
This commit is contained in:
parent
5af6e1c042
commit
124611b256
3 changed files with 17 additions and 3 deletions
|
@ -17,6 +17,10 @@ class AppFile : public RefCounted<AppFile> {
|
|||
public:
|
||||
static constexpr auto APP_FILES_DIRECTORY = "/res/apps"sv;
|
||||
|
||||
static bool exists_for_app(StringView app_name);
|
||||
static DeprecatedString file_for_app(StringView app_name);
|
||||
static DeprecatedString app_file_path_for_app(StringView app_name);
|
||||
|
||||
static NonnullRefPtr<AppFile> get_for_app(StringView app_name);
|
||||
static NonnullRefPtr<AppFile> open(StringView path);
|
||||
static void for_each(Function<void(NonnullRefPtr<AppFile>)>, StringView directory = APP_FILES_DIRECTORY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue