2020-01-18 08:38:21 +00:00
|
|
|
/*
|
2020-04-19 17:57:05 +00:00
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
2023-01-11 20:30:30 +00:00
|
|
|
* Copyright (c) 2023, Linus Groh <linusg@serenityos.org>
|
2020-01-18 08:38:21 +00:00
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 08:38:21 +00:00
|
|
|
*/
|
|
|
|
|
2019-08-03 06:32:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-12-09 16:15:17 +00:00
|
|
|
#include <AK/Error.h>
|
2020-04-19 17:57:05 +00:00
|
|
|
#include <AK/Forward.h>
|
2019-08-03 06:32:07 +00:00
|
|
|
|
2020-04-19 17:57:05 +00:00
|
|
|
namespace Core {
|
|
|
|
|
|
|
|
class StandardPaths {
|
|
|
|
public:
|
2022-12-04 18:02:33 +00:00
|
|
|
static DeprecatedString home_directory();
|
|
|
|
static DeprecatedString desktop_directory();
|
|
|
|
static DeprecatedString documents_directory();
|
|
|
|
static DeprecatedString downloads_directory();
|
|
|
|
static DeprecatedString tempfile_directory();
|
|
|
|
static DeprecatedString config_directory();
|
2022-12-05 17:46:53 +00:00
|
|
|
static DeprecatedString data_directory();
|
2022-12-09 16:15:17 +00:00
|
|
|
static ErrorOr<DeprecatedString> runtime_directory();
|
2023-01-11 20:30:30 +00:00
|
|
|
static ErrorOr<Vector<String>> font_directories();
|
2020-04-19 17:57:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|