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 // virtual functions
58 // NOLINTBEGIN
59 virtual ~DeleteStorageAreaContentProgressHandler() /*override*/;
60
61 virtual void onStart(::MinecraftScreenModel&) /*override*/;
62
63 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
64
65 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
66
67 virtual void onExit(::MinecraftScreenModel&) /*override*/;
68
69 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&) const /*override*/;
70
71 virtual ::std::string getProgressMessage(::MinecraftScreenModel&) const /*override*/;
72
73 virtual ::std::string getTitleText() const /*override*/;
74
75 virtual ::std::string getName() const /*override*/;
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCAPI void _evaluateLoadTime(
82 ::std::chrono::seconds const& loadTimeToEvaluate,
83 ::DeleteStorageAreaContentProgressHandler::StateBitField stateToAdd
84 );
85
86 MCAPI void _onComplete(::MinecraftScreenModel& minecraftScreenModel);
87
88 MCAPI void deleteDirectoryContentsRecursively(
89 ::Core::PathBuffer<::Core::BasicStackString<char, 1024>>& rootPath,
90 ::std::string const& dirToDelete
91 );
92 // NOLINTEND
93
94public:
95 // destructor thunk
96 // NOLINTBEGIN
97 MCAPI void $dtor();
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCAPI void $onStart(::MinecraftScreenModel&);
104
105 MCAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
106
107 MCFOLD void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
108
109 MCFOLD void $onExit(::MinecraftScreenModel&);
110
111 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
112
113 MCAPI ::std::string $getProgressMessage(::MinecraftScreenModel&) const;
114
115 MCAPI ::std::string $getTitleText() const;
116
117 MCAPI ::std::string $getName() const;
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCNAPI static void** $vftable();
124 // NOLINTEND
125};
Definition DeleteStorageAreaContentProgressHandler.h:5
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition DeleteStorageAreaContentProgressHandler.h:15