Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
FileCopyProgressHandler.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/resource/ResourceLocation.h"
9#include "mc/world/actor/player/LoadingState.h"
10
11// auto generated forward declare list
12// clang-format off
14class TaskGroup;
15namespace Core { class Path; }
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 32, ::std::string> mTitle;
23 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mDestPath;
24 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mExistenceTracker;
25 ::ll::TypedStorage<8, 64, ::std::function<void(bool)>> mCallback;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mIOTaskGroup;
27 ::ll::TypedStorage<8, 56, ::ResourceLocation> mSrcLocation;
28 ::ll::TypedStorage<1, 1, bool> mSrcZip;
29 ::ll::TypedStorage<1, 1, bool> mDestZip;
30 ::ll::TypedStorage<1, 1, bool> mCopyComplete;
31 ::ll::TypedStorage<1, 1, bool> mCopySuccess;
32 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mExcludeDirs;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 FileCopyProgressHandler();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
43
44 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
45
46 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
47
48 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
49
50 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
51
52 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
53
54 virtual ::std::string getTitleText() const /*override*/;
55
56 virtual ::std::string getName() const /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCNAPI FileCopyProgressHandler(
63 ::std::string const& title,
64 ::ResourceLocation const& srcPath,
65 bool srcZip,
66 ::Core::Path const& dstPath,
67 bool zipDest,
68 ::std::vector<::std::string> const& excludeDirs,
69 ::std::function<void(bool)> callback
70 );
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCNAPI void* $ctor(
77 ::std::string const& title,
78 ::ResourceLocation const& srcPath,
79 bool srcZip,
80 ::Core::Path const& dstPath,
81 bool zipDest,
82 ::std::vector<::std::string> const& excludeDirs,
83 ::std::function<void(bool)> callback
84 );
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCNAPI void $onStart(::MinecraftScreenModel& minecraftScreenModel);
91
92 MCNAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
93
94 MCNAPI void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
95
96 MCNAPI void $onExit(::MinecraftScreenModel& minecraftScreenModel);
97
98 MCNAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
99
100 MCNAPI ::std::string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
101
102 MCNAPI ::std::string $getTitleText() const;
103
104 MCNAPI ::std::string $getName() const;
105 // NOLINTEND
106};
Definition Path.h:10
Definition FileCopyProgressHandler.h:5
MCAPI void $onCancel(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI::std::string $getTitleText() const
MCAPI::std::string $getName() const
MCAPI void * $ctor(::std::string const &title, ::ResourceLocation const &srcPath, bool srcZip, ::Core::Path const &dstPath, bool zipDest, ::std::vector<::std::string > const &excludeDirs, ::std::function< void(bool)> callback)
MCAPI void $onExit(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $onStart(::MinecraftScreenModel &minecraftScreenModel)
Definition MinecraftScreenModel.h:5
Definition Path.h:16
Definition ProgressHandler.h:5
Definition ResourceLocation.h:15
Definition TaskGroup.h:85
STL namespace.