LeviLamina
Loading...
Searching...
No Matches
DeleteStorageAreaContentProgressHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/ProgressHandler.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/deps/core/string/BasicStackString.h"
9#include "mc/world/actor/player/LoadingState.h"
10
11// auto generated forward declare list
12// clang-format off
14// clang-format on
15
17public:
18 // DeleteStorageAreaContentProgressHandler inner types declare
19 // clang-format off
20 struct CancelTimeInfo;
21 // clang-format on
22
23 // DeleteStorageAreaContentProgressHandler inner types define
24 enum class StateBitField : uint {
25 // bitfield representation
26 InProgress = 1u << 0,
27 UserCanCancel = 1u << 1,
28 TakingTooLong = 1u << 2,
29 Complete = 1u << 3,
30 };
31
32 struct CancelTimeInfo {
33 public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<8, 8, ::std::chrono::seconds const> mSecondsBeforeUserCanCancel;
37 ::ll::TypedStorage<8, 8, ::std::chrono::seconds const> mSecondsBeforeClientShouldCancel;
38 // NOLINTEND
39 };
40
41 using OnCompleteCallback = ::std::function<void()> const;
42
43 using DirectoryList = ::std::vector<::Core::PathBuffer<::std::string>>;
44
45public:
46 // member variables
47 // NOLINTBEGIN
48 ::ll::TypedStorage<8, 24, ::std::vector<::Core::PathBuffer<::std::string>>> mDirectoryList;
49 ::ll::TypedStorage<8, 16, ::DeleteStorageAreaContentProgressHandler::CancelTimeInfo> mCancelTimeInfo;
50 ::ll::TypedStorage<8, 64, ::std::function<void()> const> mOnCompleteCallback;
51 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mStartTimestamp;
52 ::ll::TypedStorage<4, 4, ::DeleteStorageAreaContentProgressHandler::StateBitField> mStates;
53 ::ll::TypedStorage<8, 32, ::std::string> mDeleteStorageAreaContentTitle;
54 // NOLINTEND
55
56public:
57 // prevent constructor by default
58 DeleteStorageAreaContentProgressHandler();
59
60public:
61 // virtual functions
62 // NOLINTBEGIN
63 virtual ~DeleteStorageAreaContentProgressHandler() /*override*/ = default;
64
65 virtual void onStart(::MinecraftScreenModel&) /*override*/;
66
67 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
68
69 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
70
71 virtual void onExit(::MinecraftScreenModel&) /*override*/;
72
73 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&) const /*override*/;
74
75 virtual ::std::string getProgressMessage(::MinecraftScreenModel&) const /*override*/;
76
77 virtual ::std::string getTitleText() const /*override*/;
78
79 virtual ::std::string getName() const /*override*/;
80 // NOLINTEND
81
82public:
83 // member functions
84 // NOLINTBEGIN
85 MCAPI DeleteStorageAreaContentProgressHandler(
86 ::DeleteStorageAreaContentProgressHandler::CancelTimeInfo&& cancelTimeInfo,
87 ::std::function<void()> const&& onCompleteCallback
88 );
89
90 MCAPI void deleteDirectoryContentsRecursively(
91 ::Core::PathBuffer<::Core::BasicStackString<char, 1024>>& rootPath,
92 ::std::string const& dirToDelete
93 );
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCAPI void* $ctor(
100 ::DeleteStorageAreaContentProgressHandler::CancelTimeInfo&& cancelTimeInfo,
101 ::std::function<void()> const&& onCompleteCallback
102 );
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCAPI void $onStart(::MinecraftScreenModel&);
109
110 MCAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
111
112 MCFOLD void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
113
114 MCFOLD void $onExit(::MinecraftScreenModel&);
115
116 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
117
118 MCAPI ::std::string $getProgressMessage(::MinecraftScreenModel&) const;
119
120 MCAPI ::std::string $getTitleText() const;
121
122 MCAPI ::std::string $getName() const;
123 // NOLINTEND
124
125public:
126 // vftables
127 // NOLINTBEGIN
128 MCNAPI static void** $vftable();
129 // NOLINTEND
130};
Definition DeleteStorageAreaContentProgressHandler.h:5
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition DeleteStorageAreaContentProgressHandler.h:15