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;
20 struct MoveDirectoryOperation;
21 struct MoveFileOperation;
22 struct MoveSecureStorageOperation;
23 // clang-format on
24
25 // UWPMigrationManager inner types define
26 enum class Status : int {
27 None = 0,
28 Success = 1,
29 Error = 2,
30 Criticalerror = 3,
31 };
32
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
50 // NOLINTEND
51
52 public:
53 // prevent constructor by default
54 MoveOperation& operator=(MoveOperation const&);
57
58 public:
59 // virtual functions
60 // NOLINTBEGIN
61 virtual ~MoveOperation() = default;
62
63 virtual ::Core::Result migrate(bool) const = 0;
64
65 virtual void cleanup() const = 0;
66 // NOLINTEND
67
68 public:
69 // virtual function thunks
70 // NOLINTBEGIN
71
72 // NOLINTEND
73
74 public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79 };
80
82 public:
83 // member variables
84 // NOLINTBEGIN
87 // NOLINTEND
88
89 public:
90 // prevent constructor by default
91 OperationResult& operator=(OperationResult const&);
94 };
95
97 public:
98 // virtual functions
99 // NOLINTBEGIN
100 virtual ::Core::Result migrate(bool forceCritical) const /*override*/;
101
102 virtual void cleanup() const /*override*/;
103
104 virtual ~MoveDirectoryOperation() /*override*/ = default;
105 // NOLINTEND
106
107 public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCNAPI ::Core::Result $migrate(bool forceCritical) const;
111
112 MCNAPI void $cleanup() const;
113 // NOLINTEND
114
115 public:
116 // vftables
117 // NOLINTBEGIN
118 MCNAPI static void** $vftable();
119 // NOLINTEND
120 };
121
123 public:
124 // virtual functions
125 // NOLINTBEGIN
126 virtual ::Core::Result migrate(bool forceCritical) const /*override*/;
127
128 virtual void cleanup() const /*override*/;
129
130 virtual ~MoveFileOperation() /*override*/ = default;
131 // NOLINTEND
132
133 public:
134 // virtual function thunks
135 // NOLINTBEGIN
136 MCNAPI ::Core::Result $migrate(bool forceCritical) const;
137
138 MCNAPI void $cleanup() const;
139 // NOLINTEND
140
141 public:
142 // vftables
143 // NOLINTBEGIN
144 MCNAPI static void** $vftable();
145 // NOLINTEND
146 };
147
149 public:
150 // virtual functions
151 // NOLINTBEGIN
152 virtual ::Core::Result migrate(bool) const /*override*/;
153
154 virtual void cleanup() const /*override*/;
155
156 virtual ~MoveSecureStorageOperation() /*override*/ = default;
157 // NOLINTEND
158
159 public:
160 // virtual function thunks
161 // NOLINTBEGIN
162 MCNAPI ::Core::Result $migrate(bool) const;
163
164 MCNAPI void $cleanup() const;
165 // NOLINTEND
166
167 public:
168 // vftables
169 // NOLINTBEGIN
170 MCNAPI static void** $vftable();
171 // NOLINTEND
172 };
173
174public:
175 // member variables
176 // NOLINTBEGIN
182 // NOLINTEND
183
184public:
185 // prevent constructor by default
186 UWPMigrationManager& operator=(UWPMigrationManager const&);
189
190public:
191 // member functions
192 // NOLINTBEGIN
194 ::Core::PathBuffer<::std::string> const& externalStoragePath,
195 ::Core::PathBuffer<::std::string> const& userStorageRootPath,
196 ::Core::PathBuffer<::std::string> const& logsPath,
197 ::Core::PathBuffer<::std::string> const& uwpInstallationPath
198 );
199
200 MCNAPI ::Core::PathBuffer<::std::string> getMigrationFilePath() const;
201
202 MCNAPI ::Bedrock::Result<void> migrateFromUWP();
203
205 // NOLINTEND
206
207public:
208 // static functions
209 // NOLINTBEGIN
210 MCNAPI static ::std::string getLastMigrationErrorsAsJson();
211 // NOLINTEND
212
213public:
214 // static variables
215 // NOLINTBEGIN
216 MCNAPI static ::std::string& sErrors();
217
218 MCNAPI static ::std::string_view const& sLogsFileName();
219 // NOLINTEND
220
221public:
222 // constructor thunks
223 // NOLINTBEGIN
224 MCNAPI void* $ctor(
225 ::Core::PathBuffer<::std::string> const& externalStoragePath,
226 ::Core::PathBuffer<::std::string> const& userStorageRootPath,
227 ::Core::PathBuffer<::std::string> const& logsPath,
228 ::Core::PathBuffer<::std::string> const& uwpInstallationPath
229 );
230 // NOLINTEND
231
232public:
233 // destructor thunk
234 // NOLINTBEGIN
235 MCNAPI void $dtor();
236 // NOLINTEND
237};
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 ~UWPMigrationManager()
MCAPI UWPMigrationManager(::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()
Definition UWPMigrationManager.h:96
MCAPI::Core::Result $migrate(bool forceCritical) const
Definition UWPMigrationManager.h:122
MCAPI::Core::Result $migrate(bool forceCritical) const
Definition UWPMigrationManager.h:33
static MCAPI void ** $vftable()
Definition UWPMigrationManager.h:148
MCAPI::Core::Result $migrate(bool) const
Definition UWPMigrationManager.h:81
Definition Alias.h:14