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 // destructor thunk
77 // NOLINTBEGIN
78 MCNAPI void $dtor();
79 // NOLINTEND
80
81 public:
82 // virtual function thunks
83 // NOLINTBEGIN
84
85 // NOLINTEND
86
87 public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92 };
93
94 struct OperationResult {
95 public:
96 // member variables
97 // NOLINTBEGIN
100 // NOLINTEND
101
102 public:
103 // prevent constructor by default
104 OperationResult& operator=(OperationResult const&);
107 };
108
109 struct MoveDirectoryOperation : public ::UWPMigrationManager::MoveOperation {
110 public:
111 // virtual functions
112 // NOLINTBEGIN
113 virtual ::Core::Result migrate(bool forceCritical) const /*override*/;
114
115 virtual void cleanup() const /*override*/;
116
117 virtual ~MoveDirectoryOperation() /*override*/ = default;
118 // NOLINTEND
119
120 public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCNAPI ::Core::Result $migrate(bool forceCritical) const;
124
125 MCNAPI void $cleanup() const;
126 // NOLINTEND
127
128 public:
129 // vftables
130 // NOLINTBEGIN
131 MCNAPI static void** $vftable();
132 // NOLINTEND
133 };
134
135 struct MoveFileOperation : public ::UWPMigrationManager::MoveOperation {
136 public:
137 // virtual functions
138 // NOLINTBEGIN
139 virtual ::Core::Result migrate(bool forceCritical) const /*override*/;
140
141 virtual void cleanup() const /*override*/;
142
143 virtual ~MoveFileOperation() /*override*/ = default;
144 // NOLINTEND
145
146 public:
147 // virtual function thunks
148 // NOLINTBEGIN
149 MCNAPI ::Core::Result $migrate(bool forceCritical) const;
150
151 MCNAPI void $cleanup() const;
152 // NOLINTEND
153
154 public:
155 // vftables
156 // NOLINTBEGIN
157 MCNAPI static void** $vftable();
158 // NOLINTEND
159 };
160
162 public:
163 // virtual functions
164 // NOLINTBEGIN
165 virtual ::Core::Result migrate(bool) const /*override*/;
166
167 virtual void cleanup() const /*override*/;
168
169 virtual ~MoveSecureStorageOperation() /*override*/ = default;
170 // NOLINTEND
171
172 public:
173 // virtual function thunks
174 // NOLINTBEGIN
175 MCNAPI ::Core::Result $migrate(bool) const;
176
177 MCNAPI void $cleanup() const;
178 // NOLINTEND
179
180 public:
181 // vftables
182 // NOLINTBEGIN
183 MCNAPI static void** $vftable();
184 // NOLINTEND
185 };
186
187public:
188 // member variables
189 // NOLINTBEGIN
190 ::ll::UntypedStorage<8, 32> mUnk1ac443;
191 ::ll::UntypedStorage<8, 32> mUnked99d9;
192 ::ll::UntypedStorage<8, 32> mUnka670fc;
193 ::ll::UntypedStorage<4, 4> mUnke89d35;
194 ::ll::UntypedStorage<4, 4> mUnk26a1a9;
195 ::ll::UntypedStorage<8, 24> mUnk37721e;
196 // NOLINTEND
197
198public:
199 // prevent constructor by default
200 UWPMigrationManager& operator=(UWPMigrationManager const&);
201 UWPMigrationManager(UWPMigrationManager const&);
202 UWPMigrationManager();
203
204public:
205 // member functions
206 // NOLINTBEGIN
207 MCNAPI UWPMigrationManager(
208 ::Core::PathBuffer<::std::string> const& externalStoragePath,
209 ::Core::PathBuffer<::std::string> const& userStorageRootPath,
210 ::Core::PathBuffer<::std::string> const& logsPath,
211 ::Core::PathBuffer<::std::string> const& uwpInstallationPath,
212 uint migrationVersion
213 );
214
215 MCNAPI ::Core::PathBuffer<::std::string> getMigrationFilePath() const;
216
217 MCNAPI ::Bedrock::Result<void> migrateFromUWP();
218
219 MCNAPI bool onLatestMigration() const;
220
221 MCNAPI ~UWPMigrationManager();
222 // NOLINTEND
223
224public:
225 // static functions
226 // NOLINTBEGIN
227 MCNAPI static ::std::string getLastMigrationErrorsAsJson();
228 // NOLINTEND
229
230public:
231 // static variables
232 // NOLINTBEGIN
233 MCNAPI static ::std::string& sErrors();
234
235 MCNAPI static ::std::string_view const& sLogsFileName();
236
237 MCNAPI static ::UWPMigrationManager::MigrationState& sMigrationState();
238 // NOLINTEND
239
240public:
241 // constructor thunks
242 // NOLINTBEGIN
243 MCNAPI void* $ctor(
244 ::Core::PathBuffer<::std::string> const& externalStoragePath,
245 ::Core::PathBuffer<::std::string> const& userStorageRootPath,
246 ::Core::PathBuffer<::std::string> const& logsPath,
247 ::Core::PathBuffer<::std::string> const& uwpInstallationPath,
248 uint migrationVersion
249 );
250 // NOLINTEND
251
252public:
253 // destructor thunk
254 // NOLINTBEGIN
255 MCNAPI void $dtor();
256 // NOLINTEND
257};
Definition Result.h:11
Definition UWPMigrationManager.h:5
static MCAPI ::std::string_view const & sLogsFileName()
MCAPI ::Core::PathBuffer<::std::string > getMigrationFilePath() const
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()
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()
Definition UWPMigrationManager.h:33
MCAPI::Core::Result $migrate(bool) const
Definition UWPMigrationManager.h:27
Definition Alias.h:14