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