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 ~FileCopyProgressHandler() /*override*/;
43
44 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
45
46 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
47
48 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
49
50 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
51
52 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
53
54 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
55
56 virtual ::std::string getTitleText() const /*override*/;
57
58 virtual ::std::string getName() const /*override*/;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI FileCopyProgressHandler(
65 ::std::string const& title,
66 ::ResourceLocation const& srcPath,
67 bool srcZip,
68 ::Core::Path const& dstPath,
69 bool zipDest,
70 ::std::vector<::std::string> const& excludeDirs,
71 ::std::function<void(bool)> callback
72 );
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI void* $ctor(
79 ::std::string const& title,
80 ::ResourceLocation const& srcPath,
81 bool srcZip,
82 ::Core::Path const& dstPath,
83 bool zipDest,
84 ::std::vector<::std::string> const& excludeDirs,
85 ::std::function<void(bool)> callback
86 );
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCAPI void $dtor();
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI void $onStart(::MinecraftScreenModel& minecraftScreenModel);
99
100 MCAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
101
102 MCFOLD void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
103
104 MCFOLD void $onExit(::MinecraftScreenModel& minecraftScreenModel);
105
106 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
107
108 MCFOLD ::std::string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
109
110 MCFOLD ::std::string $getTitleText() const;
111
112 MCAPI ::std::string $getName() const;
113 // NOLINTEND
114
115public:
116 // vftables
117 // NOLINTBEGIN
118 MCNAPI static void** $vftable();
119 // NOLINTEND
120};
Definition Path.h:17
Definition FileCopyProgressHandler.h:5
static MCAPI void ** $vftable()
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition TaskGroup.h:57