1#ifndef DESKTOPDIRENTINFOSETTINGS_H
2#define DESKTOPDIRENTINFOSETTINGS_H
4enum class DesktopDirentType :
short {
20static constexpr const char* DesktopDirentTypeMETAS[] = {
21 "Documentations",
"Downloads",
"Music",
"Pictures",
22 "Videos",
"Binaries",
"Config",
"Cache",
"Runtime",
"Trash"
25static constexpr unsigned short
27 =
static_cast<unsigned short>(DesktopDirentType::Trash) + 1;
30 sizeof(DesktopDirentTypeMETAS) /
sizeof(DesktopDirentTypeMETAS[0])
31 == DesktopDirentTypeMAX,
32 "DesktopServerDirentMetas and Enums are count mismatched!");
34enum class DesktopServerType {
39static constexpr const char* DesktopServerTypeMETAS[] = {
41 "Plugin Widget Placed"
44static constexpr unsigned short
46 =
static_cast<unsigned short>(DesktopServerType::PLUGIN_WIDGET_PLACED) + 1;
48static constexpr const char* TOAST_SUMMON_DIRENT =
".__toast_summon_dirent";
49static constexpr const char* PLUGIN_WIDGET_PLACED =
"plugins";
51enum class ConfigureFileName {
55static constexpr unsigned short
57 =
static_cast<unsigned short>(ConfigureFileName::UserConfig) + 1;
59static constexpr std::pair<const char*, const char*>
60 configs_dirent_name_pair[] {
62 {
".",
"user_config.json" }
66 sizeof(configs_dirent_name_pair) /
sizeof(configs_dirent_name_pair[0])
67 == ConfigureFileNameMAX,
68 "configs_dirent_name_pair and Enums are count mismatched!");