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 DeleteStorageAreaContentProgressHandler(
91 ::DeleteStorageAreaContentProgressHandler::CancelTimeInfo&& cancelTimeInfo,
92 ::std::function<void()> const&& onCompleteCallback,
93 ::std::string&& deleteStorageContentTitle
94 );
95
96 MCAPI void _checkUserStorageList();
97
98 MCAPI void _onComplete(::MinecraftScreenModel& minecraftScreenModel);
99
100 MCAPI void deleteDirectoryContentsRecursively(
101 ::Core::PathBuffer<::Core::BasicStackString<char, 1024>>& rootPath,
102 ::std::string const& dirToDelete
103 );
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCAPI void* $ctor(
110 ::DeleteStorageAreaContentProgressHandler::CancelTimeInfo&& cancelTimeInfo,
111 ::std::function<void()> const&& onCompleteCallback
112 );
113
114 MCAPI void* $ctor(
115 ::DeleteStorageAreaContentProgressHandler::CancelTimeInfo&& cancelTimeInfo,
116 ::std::function<void()> const&& onCompleteCallback,
117 ::std::string&& deleteStorageContentTitle
118 );
119 // NOLINTEND
120
121public:
122 // virtual function thunks
123 // NOLINTBEGIN
124 MCAPI void $onStart(::MinecraftScreenModel&);
125
126 MCAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
127
128 MCFOLD void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
129
130 MCFOLD void $onExit(::MinecraftScreenModel&);
131
132 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
133
134 MCAPI ::std::string $getProgressMessage(::MinecraftScreenModel&) const;
135
136 MCAPI ::std::string $getTitleText() const;
137
138 MCAPI ::std::string $getName() const;
139 // NOLINTEND
140
141public:
142 // vftables
143 // NOLINTBEGIN
144 MCNAPI static void** $vftable();
145 // NOLINTEND
146};
Definition DeleteStorageAreaContentProgressHandler.h:5
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition DeleteStorageAreaContentProgressHandler.h:15