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 struct MoveOperation {
34 public:
35 // MoveOperation inner types define
36 enum class Type : int {
37 File = 0,
38 Directory = 1,
39 SecureStorage = 2,
40 };
41
42 public:
43 // member variables
44 // NOLINTBEGIN
45 ::ll::UntypedStorage<1, 1> mUnk99cb0a;
46 ::ll::UntypedStorage<1, 1> mUnk5dcea8;
47 ::ll::UntypedStorage<8, 32> mUnkc44eb6;
48 ::ll::UntypedStorage<8, 32> mUnk53541f;
49 ::ll::UntypedStorage<4, 4> mUnk459421;
50 // NOLINTEND
51
52 public:
53 // prevent constructor by default
54 MoveOperation& operator=(MoveOperation const&);
55 MoveOperation(MoveOperation const&);
56 MoveOperation();
57
58 public:
59 // virtual functions
60 // NOLINTBEGIN
61 virtual ~MoveOperation();
62
63 virtual ::Core::Result migrate(bool) const = 0;
64
65 virtual void cleanup() const = 0;
66 // NOLINTEND
67
68 public:
69 // destructor thunk
70 // NOLINTBEGIN
71 MCNAPI void $dtor();
72 // NOLINTEND
73
74 public:
75 // virtual function thunks
76 // NOLINTBEGIN
77
78 // NOLINTEND
79
80 public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85 };
86
87 struct OperationResult {
88 public:
89 // member variables
90 // NOLINTBEGIN
93 // NOLINTEND
94
95 public:
96 // prevent constructor by default
97 OperationResult& operator=(OperationResult const&);
100 };
101
102 struct MoveDirectoryOperation : public ::UWPMigrationManager::MoveOperation {
103 public:
104 // virtual functions
105 // NOLINTBEGIN
106 virtual ::Core::Result migrate(bool forceCritical) const /*override*/;
107
108 virtual void cleanup() const /*override*/;
109
110 virtual ~MoveDirectoryOperation() /*override*/ = default;
111 // NOLINTEND
112
113 public:
114 // virtual function thunks
115 // NOLINTBEGIN
116 MCNAPI ::Core::Result $migrate(bool forceCritical) const;
117
118 MCNAPI void $cleanup() const;
119 // NOLINTEND
120
121 public:
122 // vftables
123 // NOLINTBEGIN
124 MCNAPI static void** $vftable();
125 // NOLINTEND
126 };
127
128 struct MoveFileOperation : public ::UWPMigrationManager::MoveOperation {
129 public:
130 // virtual functions
131 // NOLINTBEGIN
132 virtual ::Core::Result migrate(bool forceCritical) const /*override*/;
133
134 virtual void cleanup() const /*override*/;
135
136 virtual ~MoveFileOperation() /*override*/ = default;
137 // NOLINTEND
138
139 public:
140 // virtual function thunks
141 // NOLINTBEGIN
142 MCNAPI ::Core::Result $migrate(bool forceCritical) const;
143
144 MCNAPI void $cleanup() const;
145 // NOLINTEND
146
147 public:
148 // vftables
149 // NOLINTBEGIN
150 MCNAPI static void** $vftable();
151 // NOLINTEND
152 };
153
155 public:
156 // virtual functions
157 // NOLINTBEGIN
158 virtual ::Core::Result migrate(bool) const /*override*/;
159
160 virtual void cleanup() const /*override*/;
161
162 virtual ~MoveSecureStorageOperation() /*override*/ = default;
163 // NOLINTEND
164
165 public:
166 // virtual function thunks
167 // NOLINTBEGIN
168 MCNAPI ::Core::Result $migrate(bool) const;
169
170 MCNAPI void $cleanup() const;
171 // NOLINTEND
172
173 public:
174 // vftables
175 // NOLINTBEGIN
176 MCNAPI static void** $vftable();
177 // NOLINTEND
178 };
179
180public:
181 // member variables
182 // NOLINTBEGIN
183 ::ll::UntypedStorage<8, 32> mUnk806ad7;
184 ::ll::UntypedStorage<8, 32> mUnk3a354c;
185 ::ll::UntypedStorage<8, 32> mUnk2524e5;
186 ::ll::UntypedStorage<4, 4> mUnk26a1a9;
187 ::ll::UntypedStorage<8, 24> mUnk113a50;
188 // NOLINTEND
189
190public:
191 // prevent constructor by default
192 UWPMigrationManager& operator=(UWPMigrationManager const&);
193 UWPMigrationManager(UWPMigrationManager const&);
194 UWPMigrationManager();
195
196public:
197 // member functions
198 // NOLINTBEGIN
199 MCNAPI UWPMigrationManager(
200 ::Core::PathBuffer<::std::string> const& externalStoragePath,
201 ::Core::PathBuffer<::std::string> const& userStorageRootPath,
202 ::Core::PathBuffer<::std::string> const& logsPath,
203 ::Core::PathBuffer<::std::string> const& uwpInstallationPath
204 );
205
206 MCNAPI ::Core::PathBuffer<::std::string> getMigrationFilePath() const;
207
208 MCNAPI ::Bedrock::Result<void> migrateFromUWP();
209
210 MCNAPI ~UWPMigrationManager();
211 // NOLINTEND
212
213public:
214 // static functions
215 // NOLINTBEGIN
216 MCNAPI static ::std::string getLastMigrationErrorsAsJson();
217 // NOLINTEND
218
219public:
220 // static variables
221 // NOLINTBEGIN
222 MCNAPI static ::std::string& sErrors();
223
224 MCNAPI static ::std::string_view const& sLogsFileName();
225 // NOLINTEND
226
227public:
228 // constructor thunks
229 // NOLINTBEGIN
230 MCNAPI void* $ctor(
231 ::Core::PathBuffer<::std::string> const& externalStoragePath,
232 ::Core::PathBuffer<::std::string> const& userStorageRootPath,
233 ::Core::PathBuffer<::std::string> const& logsPath,
234 ::Core::PathBuffer<::std::string> const& uwpInstallationPath
235 );
236 // NOLINTEND
237
238public:
239 // destructor thunk
240 // NOLINTBEGIN
241 MCNAPI void $dtor();
242 // NOLINTEND
243};
Definition Result.h:11
Definition UWPMigrationManager.h:5
static MCAPI ::std::string_view const & sLogsFileName()
MCAPI ::Core::PathBuffer<::std::string > getMigrationFilePath() const
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)
MCAPI ::Bedrock::Result< void > migrateFromUWP()
static MCAPI ::std::string getLastMigrationErrorsAsJson()
MCAPI void $dtor()
static MCAPI ::std::string & sErrors()
STL namespace.
Definition UWPMigrationManager.h:27
MCAPI::Core::Result $migrate(bool forceCritical) const
Definition UWPMigrationManager.h:29
MCAPI::Core::Result $migrate(bool forceCritical) const
Definition UWPMigrationManager.h:19
static MCAPI void ** $vftable()
Definition UWPMigrationManager.h:31
MCAPI::Core::Result $migrate(bool) const
Definition UWPMigrationManager.h:25
Definition Alias.h:14