CCIMXDesktop
 
Loading...
Searching...
No Matches
DesktopDirentInfoSettings.h
1#ifndef DESKTOPDIRENTINFOSETTINGS_H
2#define DESKTOPDIRENTINFOSETTINGS_H
3#include <QString>
4enum class DesktopDirentType : short {
5 Documents,
6 Downloads,
7 Music,
8 Pictures,
9 Videos,
10 Binaries,
11 Config,
12 Cache,
13 Runtime,
14 Trash,
15};
16
20static constexpr const char* DesktopDirentTypeMETAS[] = {
21 "Documentations", "Downloads", "Music", "Pictures",
22 "Videos", "Binaries", "Config", "Cache", "Runtime", "Trash"
23};
24
25static constexpr unsigned short
26 DesktopDirentTypeMAX
27 = static_cast<unsigned short>(DesktopDirentType::Trash) + 1;
28
29static_assert(
30 sizeof(DesktopDirentTypeMETAS) / sizeof(DesktopDirentTypeMETAS[0])
31 == DesktopDirentTypeMAX,
32 "DesktopServerDirentMetas and Enums are count mismatched!");
33
34enum class DesktopServerType {
35 TOAST_SUMMON
36};
37
38static constexpr const char* DesktopServerTypeMETAS[] = {
39 "Toast Summon"
40};
41
42static constexpr unsigned short
43 DesktopServerTypeMAX
44 = static_cast<unsigned short>(DesktopServerType::TOAST_SUMMON) + 1;
45
46static_assert(
47 sizeof(DesktopServerTypeMETAS) / sizeof(DesktopServerTypeMETAS[0])
48 == DesktopServerTypeMAX,
49 "DesktopServerTypeMETAS and Enums are count mismatched!");
50
51static constexpr const char* TOAST_SUMMON_DIRENT = ".__toast_summon_dirent";
52
53#endif // DESKTOPDIRENTINFOSETTINGS_H