3#include "mc/_HeaderOutputPredefine.h"
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"
24 enum class StateBitField : uint {
27 UserCanCancel = 1u << 1,
28 TakingTooLong = 1u << 2,
36 ::ll::TypedStorage<8, 8, ::std::chrono::seconds const> mSecondsBeforeUserCanCancel;
37 ::ll::TypedStorage<8, 8, ::std::chrono::seconds const> mSecondsBeforeClientShouldCancel;
41 using OnCompleteCallback = ::std::function<void()>
const;
43 using DirectoryList = ::std::vector<::Core::PathBuffer<::std::string>>;
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;
58 DeleteStorageAreaContentProgressHandler();
63 virtual ~DeleteStorageAreaContentProgressHandler() =
default;
65 virtual void onStart(::MinecraftScreenModel&) ;
67 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
69 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
71 virtual void onExit(::MinecraftScreenModel&) ;
73 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&)
const ;
75 virtual ::std::string getProgressMessage(::MinecraftScreenModel&)
const ;
77 virtual ::std::string getTitleText() const ;
79 virtual ::std::
string getName() const ;
85 MCNAPI DeleteStorageAreaContentProgressHandler(
86 ::DeleteStorageAreaContentProgressHandler::
CancelTimeInfo&& cancelTimeInfo,
87 ::
std::function<
void()> const&& onCompleteCallback
91 ::Core::PathBuffer<::Core::BasicStackString<
char, 1024>>& rootPath,
92 ::
std::
string const& dirToDelete
100 ::DeleteStorageAreaContentProgressHandler::
CancelTimeInfo&& cancelTimeInfo,
101 ::
std::function<
void()> const&& onCompleteCallback
Definition DeleteStorageAreaContentProgressHandler.h:5
MCAPI void deleteDirectoryContentsRecursively(::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > &rootPath, ::std::string const &dirToDelete)
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &) const
MCAPI void $onStart(::MinecraftScreenModel &)
static MCAPI void ** $vftable()
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $onExit(::MinecraftScreenModel &)
MCAPI void $onCancel(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &) const
MCAPI void * $ctor(::DeleteStorageAreaContentProgressHandler::CancelTimeInfo &&cancelTimeInfo, ::std::function< void()> const &&onCompleteCallback)
MCAPI::std::string $getTitleText() const
MCAPI::std::string $getName() const
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition DeleteStorageAreaContentProgressHandler.h:15