LeviLamina
Loading...
Searching...
No Matches
EduCloudDownloadProgressHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/game/edu_cloud/LaunchOptions.h"
7#include "mc/client/gui/EmptyProgressHandler.h"
8#include "mc/client/gui/ProgressAnimation.h"
9#include "mc/client/resources/ImportFailure.h"
10#include "mc/client/resources/ImportState.h"
11#include "mc/client/services/ms_graph/GraphResponse.h"
12#include "mc/client/util/edu_cloud_utils/Operation.h"
13#include "mc/util/DownloadError.h"
14#include "mc/world/actor/player/LoadingState.h"
15
16// auto generated forward declare list
17// clang-format off
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 4, ::LoadingState> mLoadingState;
28 ::ll::TypedStorage<4, 4, ::EduCloudUtils::Operation> mCurrentOperation;
29 ::ll::TypedStorage<4, 4, ::MSGraph::GraphResponse> mSyncErrorStatus;
30 ::ll::TypedStorage<4, 4, ::MSGraph::GraphResponse> mGraphErrorStatus;
31 ::ll::TypedStorage<4, 4, ::DownloadError> mDownloadErrorStatus;
32 ::ll::TypedStorage<4, 4, ::ImportFailure> mImportErrorStatus;
33 ::ll::TypedStorage<8, 64, ::std::function<void(bool)>> mSetReadyToLaunch;
34 ::ll::TypedStorage<8, 32, ::std::string> mTitleText;
35 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::WorldFileDownloadManager>> mDownloadManager;
36 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ImportState>> mImportState;
37 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mEduCloudDownloadDelayStart;
38 ::ll::TypedStorage<8, 8, ::std::chrono::milliseconds const> mDisplayInterval;
39 ::ll::TypedStorage<1, 1, bool const> mLaunchWorldOnCompletion;
40 ::ll::TypedStorage<1, 1, bool> mCanceled;
41 ::ll::TypedStorage<1, 1, bool> mExitingScreen;
42 ::ll::TypedStorage<1, 1, bool> mCanLaunchLocalWorld;
43 ::ll::TypedStorage<8, 32, ::std::string> mProgressMessage;
44 ::ll::TypedStorage<8, 32, ::std::string> mPreviousProgressMessage;
45 // NOLINTEND
46
47public:
48 // prevent constructor by default
49 EduCloudDownloadProgressHandler();
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
55
56 virtual void onCancel(::MinecraftScreenModel&) /*override*/;
57
58 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
59
60 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
61
62 virtual ::std::string getProgressMessage(::MinecraftScreenModel&) const /*override*/;
63
64 virtual ::std::string getTitleText() const /*override*/;
65
66 virtual ::std::string getName() const /*override*/;
67
68 virtual ::std::string getTTSProgressMessage() const /*override*/;
69
70 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&) const /*override*/;
71
72 virtual ::ProgressAnimation showLoadingBar() const /*override*/;
73 // NOLINTEND
74
75public:
76 // member functions
77 // NOLINTBEGIN
78 MCAPI EduCloudDownloadProgressHandler(
79 ::std::shared_ptr<::WorldFileDownloadManager> downloadManager,
80 ::std::shared_ptr<::ImportState> importState,
81 ::std::string const& id,
82 ::EduCloud::LaunchOptions launchOption,
83 bool canLaunchLocalWorld,
84 ::std::function<void(::SetDownloadProgressHandlerError)> const& setDownloadErrorsStatusCallbacks,
85 ::std::function<void(bool)> const& setReadyToLaunch
86 );
87
88 MCAPI void _leaveProgressHandler(::MinecraftScreenModel& minecraftScreenModel);
89
90 MCAPI ::std::string _updateProgressMessage(::MinecraftScreenModel& minecraftScreenModel);
91
92 MCAPI void _updateTitle();
93
94 MCFOLD bool canLaunchLocalWorld() const;
95
96 MCAPI void exitErrorPopup(::MinecraftScreenModel& minecraftScreenModel, bool launch);
97
98 MCFOLD ::EduCloudUtils::Operation getCurrentOperation() const;
99
100 MCFOLD ::DownloadError getDownloadErrorStatus() const;
101
102 MCFOLD ::MSGraph::GraphResponse getGraphErrorStatus() const;
103
104 MCFOLD ::ImportFailure getImportErrorStatus() const;
105
106 MCFOLD ::MSGraph::GraphResponse getSyncErrorStatus() const;
107 // NOLINTEND
108
109public:
110 // constructor thunks
111 // NOLINTBEGIN
112 MCAPI void* $ctor(
113 ::std::shared_ptr<::WorldFileDownloadManager> downloadManager,
114 ::std::shared_ptr<::ImportState> importState,
115 ::std::string const& id,
116 ::EduCloud::LaunchOptions launchOption,
117 bool canLaunchLocalWorld,
118 ::std::function<void(::SetDownloadProgressHandlerError)> const& setDownloadErrorsStatusCallbacks,
119 ::std::function<void(bool)> const& setReadyToLaunch
120 );
121 // NOLINTEND
122
123public:
124 // virtual function thunks
125 // NOLINTBEGIN
126 MCAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
127
128 MCAPI void $onCancel(::MinecraftScreenModel&);
129
130 MCAPI void $onExit(::MinecraftScreenModel& minecraftScreenModel);
131
132 MCAPI void $onStart(::MinecraftScreenModel& minecraftScreenModel);
133
134 MCFOLD ::std::string $getProgressMessage(::MinecraftScreenModel&) const;
135
136 MCFOLD ::std::string $getTitleText() const;
137
138 MCAPI ::std::string $getName() const;
139
140 MCFOLD ::std::string $getTTSProgressMessage() const;
141
142 MCFOLD ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
143
144 MCFOLD ::ProgressAnimation $showLoadingBar() const;
145 // NOLINTEND
146
147public:
148 // vftables
149 // NOLINTBEGIN
150 MCNAPI static void** $vftable();
151 // NOLINTEND
152};
Definition EduCloudDownloadProgressHandler.h:5
static MCAPI void ** $vftable()
Definition EmptyProgressHandler.h:5
Definition MinecraftScreenModel.h:5
Definition WorldFileDownloadManager.h:5
Definition SetDownloadProgressHandlerError.h:5