2020-08-12 14:28:10 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-12 14:28:10 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Forward.h>
|
|
|
|
|
#include <LibGUI/Forward.h>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
|
|
class FileIconProvider {
|
|
|
|
|
public:
|
2023-03-24 06:57:53 -03:00
|
|
|
static Icon icon_for_path(StringView, mode_t);
|
|
|
|
|
static Icon icon_for_path(StringView);
|
2022-12-04 15:02:33 -03:00
|
|
|
static Icon icon_for_executable(DeprecatedString const&);
|
2020-08-12 14:28:10 -03:00
|
|
|
|
|
|
|
|
static Icon filetype_image_icon();
|
|
|
|
|
static Icon directory_icon();
|
|
|
|
|
static Icon directory_open_icon();
|
|
|
|
|
static Icon home_directory_icon();
|
|
|
|
|
static Icon home_directory_open_icon();
|
2022-09-05 20:14:59 -03:00
|
|
|
static Icon git_directory_icon();
|
|
|
|
|
static Icon git_directory_open_icon();
|
2021-04-09 18:42:23 -03:00
|
|
|
static Icon desktop_directory_icon();
|
2020-08-12 14:28:10 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|