2020-01-18 09:38:21 +01:00
|
|
|
/*
|
2020-04-19 19:57:05 +02: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 09:38:21 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
2019-08-03 08:32:07 +02:00
|
|
|
#pragma once
|
|
|
|
|
2022-12-09 11:15:17 -05:00
|
|
|
#include <AK/Error.h>
|
2020-04-19 19:57:05 +02:00
|
|
|
#include <AK/Forward.h>
|
2019-08-03 08:32:07 +02:00
|
|
|
|
2020-04-19 19:57:05 +02: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 12:46:53 -05:00
|
|
|
static DeprecatedString data_directory();
|
2022-12-09 11:15:17 -05:00
|
|
|
static ErrorOr<DeprecatedString> runtime_directory();
|
2023-01-11 20:30:30 +00:00
|
|
|
static ErrorOr<Vector<String>> font_directories();
|
2020-04-19 19:57:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|