LeviLamina
Loading...
Searching...
No Matches
UWPMigrationManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/platform/Result.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Core { class Result; }
12// clang-format on
13
15public:
16 // UWPMigrationManager inner types declare
17 // clang-format off
18 struct MoveOperation;
19 struct OperationResult;
21 struct MoveFileOperation;
23 // clang-format on
24
25 // UWPMigrationManager inner types define
26 enum class Status : int {
27 None = 0,
28 Success = 1,
29 Migrationerror = 2,
30 Criticalerror = 3,
31 };
32
33 enum class MigrationState : int {
34 None = 0,
35 PreviouslyMigrated = 1,
36 AttemptFailed = 2,
37 Finished = 3,
38 };
39
40 struct MoveOperation {
41 public:
42 // MoveOperation inner types define
43 enum class Type : int {
44 File = 0,
45 Directory = 1,
46 SecureStorage = 2,
47 };
48
49 public:
50 // member variables
51 // NOLINTBEGIN
52 ::ll::UntypedStorage<1, 1> mUnk99cb0a;
53 ::ll::UntypedStorage<1, 1> mUnk5dcea8;
54 ::ll::UntypedStorage<8, 32> mUnkebafbc;
55 ::ll::UntypedStorage<8, 32> mUnk915989;
56 ::ll::UntypedStorage<4, 4> mUnk459421;
57 // NOLINTEND
58
59 public:
60 // prevent constructor by default
61 MoveOperation& operator=(MoveOperation const&);
62 MoveOperation(MoveOperation const&);
63 MoveOperation();
64
65 public:
66 // virtual functions
67 // NOLINTBEGIN
68 virtual ~MoveOperation();
69
70 virtual ::Core::Result migrate(bool forceCritical) const = 0;
71
72 virtual void cleanup() const = 0;
73 // NOLINTEND
74
75 public:
76 // member functions
77 // NOLINTBEGIN
79 bool critical,
80 uchar maxRetries,
83 ::UWPMigrationManager::MoveOperation::Type opType
84 );
85 // NOLINTEND
86
87 public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCNAPI void* $ctor(
91 bool critical,
92 uchar maxRetries,
95 ::UWPMigrationManager::MoveOperation::Type opType
96 );
97 // NOLINTEND
98
99 public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCNAPI void $dtor();
103 // NOLINTEND
104
105 public:
106 // virtual function thunks
107 // NOLINTBEGIN
108
109 // NOLINTEND
110
111 public:
112 // vftables
113 // NOLINTBEGIN
114 MCNAPI static void** $vftable();
115 // NOLINTEND
116 };
117
118 struct OperationResult {
119 public:
120 // member variables
121 // NOLINTBEGIN
124 // NOLINTEND
125
126 public:
127 // prevent constructor by default
128 OperationResult& operator=(OperationResult const&);
131 };
132
133 struct MoveDirectoryOperation : public ::UWPMigrationManager::MoveOperation {
134 public:
135 // virtual functions
136 // NOLINTBEGIN
137 virtual ::Core::Result migrate(bool forceCritical) const /*override*/;
138
139 virtual void cleanup() const /*override*/;
140 // NOLINTEND
141
142 public:
143 // virtual function thunks
144 // NOLINTBEGIN
145 MCNAPI ::Core::Result $migrate(bool forceCritical) const;
146
147 MCNAPI void $cleanup() const;
148 // NOLINTEND
149
150 public:
151 // vftables
152 // NOLINTBEGIN
153 MCNAPI static void** $vftable();
154 // NOLINTEND
155 };
156
157 struct MoveFileOperation : public ::UWPMigrationManager::MoveOperation {
158 public:
159 // virtual functions
160 // NOLINTBEGIN
161 virtual ::Core::Result migrate(bool forceCritical) const /*override*/;
162
163 virtual void cleanup() const /*override*/;
164 // NOLINTEND
165
166 public:
167 // virtual function thunks
168 // NOLINTBEGIN
169 MCNAPI ::Core::Result $migrate(bool forceCritical) const;
170
171 MCNAPI void $cleanup() const;
172 // NOLINTEND
173
174 public:
175 // vftables
176 // NOLINTBEGIN
177 MCNAPI static void** $vftable();
178 // NOLINTEND
179 };
180
182 public:
183 // virtual functions
184 // NOLINTBEGIN
185 virtual ::Core::Result migrate(bool) const /*override*/;
186
187 virtual void cleanup() const /*override*/;
188 // NOLINTEND
189
190 public:
191 // virtual function thunks
192 // NOLINTBEGIN
193 MCNAPI ::Core::Result $migrate(bool) const;
194
195 MCNAPI void $cleanup() const;
196 // NOLINTEND
197
198 public:
199 // vftables
200 // NOLINTBEGIN
201 MCNAPI static void** $vftable();
202 // NOLINTEND
203 };
204
205public:
206 // member variables
207 // NOLINTBEGIN
208 ::ll::UntypedStorage<8, 32> mUnk1ac443;
209 ::ll::UntypedStorage<8, 32> mUnked99d9;
210 ::ll::UntypedStorage<8, 32> mUnka670fc;
211 ::ll::UntypedStorage<4, 4> mUnke89d35;
212 ::ll::UntypedStorage<4, 4> mUnk26a1a9;
213 ::ll::UntypedStorage<8, 24> mUnk37721e;
214 // NOLINTEND
215
216public:
217 // prevent constructor by default
218 UWPMigrationManager& operator=(UWPMigrationManager const&);
219 UWPMigrationManager(UWPMigrationManager const&);
220 UWPMigrationManager();
221
222public:
223 // member functions
224 // NOLINTBEGIN
225 MCNAPI UWPMigrationManager(
226 ::Core::PathBuffer<::std::string> const& externalStoragePath,
227 ::Core::PathBuffer<::std::string> const& userStorageRootPath,
228 ::Core::PathBuffer<::std::string> const& logsPath,
229 ::Core::PathBuffer<::std::string> const& uwpInstallationPath,
230 uint migrationVersion
231 );
232
233 MCNAPI ::UWPMigrationManager::Status getStatus() const;
234
235 MCNAPI ::Bedrock::Result<void> migrateFromUWP();
236
237 MCNAPI bool onLatestMigration() const;
238
239 MCNAPI ~UWPMigrationManager();
240 // NOLINTEND
241
242public:
243 // static functions
244 // NOLINTBEGIN
245 MCNAPI static ::std::string getLastMigrationErrorsAsJson();
246
247 MCNAPI static ::UWPMigrationManager::MigrationState getMigrationState();
248 // NOLINTEND
249
250public:
251 // static variables
252 // NOLINTBEGIN
253 MCNAPI static ::std::string& sErrors();
254
255 MCNAPI static ::std::string_view const& sLogsFileName();
256
257 MCNAPI static ::UWPMigrationManager::MigrationState& sMigrationState();
258 // NOLINTEND
259
260public:
261 // constructor thunks
262 // NOLINTBEGIN
263 MCNAPI void* $ctor(
264 ::Core::PathBuffer<::std::string> const& externalStoragePath,
265 ::Core::PathBuffer<::std::string> const& userStorageRootPath,
266 ::Core::PathBuffer<::std::string> const& logsPath,
267 ::Core::PathBuffer<::std::string> const& uwpInstallationPath,
268 uint migrationVersion
269 );
270 // NOLINTEND
271
272public:
273 // destructor thunk
274 // NOLINTBEGIN
275 MCNAPI void $dtor();
276 // NOLINTEND
277};
Definition PathBuffer.h:8
Definition Result.h:11
Definition UWPMigrationManager.h:5
static MCAPI ::std::string_view const & sLogsFileName()
static MCAPI ::UWPMigrationManager::MigrationState getMigrationState()
MCAPI ::Bedrock::Result< void > migrateFromUWP()
MCAPI bool onLatestMigration() const
static MCAPI ::std::string getLastMigrationErrorsAsJson()
MCAPI void * $ctor(::Core::PathBuffer<::std::string > const &externalStoragePath, ::Core::PathBuffer<::std::string > const &userStorageRootPath, ::Core::PathBuffer<::std::string > const &logsPath, ::Core::PathBuffer<::std::string > const &uwpInstallationPath, uint migrationVersion)
MCAPI void $dtor()
static MCAPI ::UWPMigrationManager::MigrationState & sMigrationState()
static MCAPI ::std::string & sErrors()
MCAPI::UWPMigrationManager::Status getStatus() const
STL namespace.
Definition UWPMigrationManager.h:29
MCAPI::Core::Result $migrate(bool forceCritical) const
Definition UWPMigrationManager.h:31
MCAPI::Core::Result $migrate(bool forceCritical) const
Definition UWPMigrationManager.h:21
static MCAPI void ** $vftable()
MCAPI MoveOperation(bool critical, uchar maxRetries, ::Core::PathBuffer<::std::string > const &srcPath, ::Core::PathBuffer<::std::string > const &dstPath, ::UWPMigrationManager::MoveOperation::Type opType)
MCAPI void * $ctor(bool critical, uchar maxRetries, ::Core::PathBuffer<::std::string > const &srcPath, ::Core::PathBuffer<::std::string > const &dstPath, ::UWPMigrationManager::MoveOperation::Type opType)
Definition UWPMigrationManager.h:33
MCAPI::Core::Result $migrate(bool) const
Definition UWPMigrationManager.h:27
Definition Alias.h:14