LeviLamina
Loading...
Searching...
No Matches
DlcBatchModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/services/download/IContentAcquisition.h"
7#include "mc/client/services/download/IDlcBatchModel.h"
8#include "mc/client/services/download/InitiatorCategory.h"
9#include "mc/client/store/ItemInstallState.h"
10
11// auto generated forward declare list
12// clang-format off
13class DlcId;
15class IStoreCatalogRepository;
16struct PackIdVersion;
17// clang-format on
18
19class DlcBatchModel : public ::IDlcBatchModel {
20public:
21 // DlcBatchModel inner types define
22 enum class DlcProductIdSearch : int {
23 Unknown = 0,
24 Searching = 1,
25 Done = 2,
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 8, ::IContentAcquisition&> mContentAcquisition;
32 ::ll::TypedStorage<8, 8, ::IStoreCatalogRepository&> mStoreCatalog;
33 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mDlcBatchExistenceTracker;
34 ::ll::TypedStorage<8, 24, ::std::vector<::DlcId>> mDlcIds;
35 ::ll::TypedStorage<8, 24, ::std::vector<::PackIdVersion>> mPackIds;
36 ::ll::TypedStorage<4, 4, ::DlcBatchModel::DlcProductIdSearch> mDlcProductIdSearch;
37 ::ll::TypedStorage<4, 4, ::InitiatorCategory> mInitiatorCategory;
38 ::ll::TypedStorage<1, 1, bool> mSilent;
39 ::ll::TypedStorage<8, 16, ::std::optional<::IContentAcquisition::ImportCallbackId>> mBatchId;
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 DlcBatchModel& operator=(DlcBatchModel const&);
45 DlcBatchModel();
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual ~DlcBatchModel() /*override*/;
51
52 virtual bool containsProductId(::std::string const& productId) const /*override*/;
53
54 virtual void searchForProductIds(::std::function<void()> searchCompleteCallback) /*override*/;
55
56 virtual void beginExclusiveDownload() /*override*/;
57
58 virtual void beginPackDownload() /*override*/;
59
60 virtual void beginPackDownloadWithPossibleThrottleWarning() /*override*/;
61
62 virtual void beginAutoDownload() /*override*/;
63
64 virtual void beginWorldPackDownload() /*override*/;
65
66 virtual void cancelInactiveDownloads() /*override*/;
67
68 virtual void cancelDownload() /*override*/;
69
70 virtual void cancelPendingDownload() /*override*/;
71
72 virtual void cancelPendingImport() /*override*/;
73
74 virtual void pauseDownload() /*override*/;
75
76 virtual void resumeDownload() /*override*/;
77
78 virtual bool isDownloadingOrImporting() const /*override*/;
79
80 virtual bool isDownloading() const /*override*/;
81
82 virtual bool isDownloadComplete() const /*override*/;
83
84 virtual uint64 getDownloadSize() const /*override*/;
85
86 virtual uint64 getDownloadedBytes() const /*override*/;
87
88 virtual float getDownloadProgress() const /*override*/;
89
90 virtual uint64 getDownloadedCount() const /*override*/;
91
92 virtual ::std::optional<int> getIndexOfActiveDownload() const /*override*/;
93
94 virtual bool isImporting() const /*override*/;
95
96 virtual bool isImportComplete() const /*override*/;
97
98 virtual bool isImportWaiting() const /*override*/;
99
100 virtual uint64 getImportTotal() const /*override*/;
101
102 virtual uint64 getImportedCount() const /*override*/;
103
104 virtual float getImportProgress() const /*override*/;
105
106 virtual ::std::optional<int> getIndexOfActiveImport() const /*override*/;
107
108 virtual ::std::vector<::DlcId> const& getDlcIds() const /*override*/;
109
110 virtual ::std::vector<::PackIdVersion> const& getPackIds() const /*override*/;
111
112 virtual ::std::vector<::std::string> getProductIdList() const /*override*/;
113
114 virtual ::ItemInstallState getDlcInstalledState() const /*override*/;
115
116 virtual bool isContentSearchComplete() /*override*/;
117
118 virtual bool isContentSearchInProgress() const /*override*/;
119
120 virtual bool isFailed() const /*override*/;
121
122 virtual bool isCancelled() const /*override*/;
123
124 virtual void setSilent(bool newSilent) /*override*/;
125
126 virtual bool isSilent() const /*override*/;
127
128 virtual ::IContentAcquisition& contentAcquisition() const /*override*/;
129
130 virtual ::IStoreCatalogRepository& storeCatalog() const /*override*/;
131 // NOLINTEND
132
133public:
134 // member functions
135 // NOLINTBEGIN
136 MCAPI DlcBatchModel(::DlcBatchModel const&);
137
138 MCAPI explicit DlcBatchModel(::IDlcBatchModel const& ref);
139
140 MCAPI DlcBatchModel(
141 ::IContentAcquisition& contentAcquisition,
142 ::IStoreCatalogRepository& storeCatalog,
143 ::std::vector<::DlcId> dlcIds,
144 ::std::vector<::PackIdVersion> packIds
145 );
146
147 MCAPI bool _canBeginDownload() const;
148 // NOLINTEND
149
150public:
151 // constructor thunks
152 // NOLINTBEGIN
153 MCAPI void* $ctor(::DlcBatchModel const&);
154
155 MCAPI void* $ctor(::IDlcBatchModel const& ref);
156
157 MCAPI void* $ctor(
158 ::IContentAcquisition& contentAcquisition,
159 ::IStoreCatalogRepository& storeCatalog,
160 ::std::vector<::DlcId> dlcIds,
161 ::std::vector<::PackIdVersion> packIds
162 );
163 // NOLINTEND
164
165public:
166 // destructor thunk
167 // NOLINTBEGIN
168 MCAPI void $dtor();
169 // NOLINTEND
170
171public:
172 // virtual function thunks
173 // NOLINTBEGIN
174 MCAPI bool $containsProductId(::std::string const& productId) const;
175
176 MCAPI void $searchForProductIds(::std::function<void()> searchCompleteCallback);
177
178 MCAPI void $beginExclusiveDownload();
179
180 MCAPI void $beginPackDownload();
181
182 MCAPI void $beginPackDownloadWithPossibleThrottleWarning();
183
184 MCAPI void $beginAutoDownload();
185
186 MCAPI void $beginWorldPackDownload();
187
188 MCAPI void $cancelInactiveDownloads();
189
190 MCAPI void $cancelDownload();
191
192 MCAPI void $cancelPendingDownload();
193
194 MCAPI void $cancelPendingImport();
195
196 MCAPI void $pauseDownload();
197
198 MCAPI void $resumeDownload();
199
200 MCAPI bool $isDownloadingOrImporting() const;
201
202 MCAPI bool $isDownloading() const;
203
204 MCAPI bool $isDownloadComplete() const;
205
206 MCAPI uint64 $getDownloadSize() const;
207
208 MCAPI uint64 $getDownloadedBytes() const;
209
210 MCAPI float $getDownloadProgress() const;
211
212 MCAPI uint64 $getDownloadedCount() const;
213
214 MCAPI ::std::optional<int> $getIndexOfActiveDownload() const;
215
216 MCAPI bool $isImporting() const;
217
218 MCAPI bool $isImportComplete() const;
219
220 MCAPI bool $isImportWaiting() const;
221
222 MCAPI uint64 $getImportTotal() const;
223
224 MCAPI uint64 $getImportedCount() const;
225
226 MCAPI float $getImportProgress() const;
227
228 MCAPI ::std::optional<int> $getIndexOfActiveImport() const;
229
230 MCFOLD ::std::vector<::DlcId> const& $getDlcIds() const;
231
232 MCFOLD ::std::vector<::PackIdVersion> const& $getPackIds() const;
233
234 MCAPI ::std::vector<::std::string> $getProductIdList() const;
235
236 MCAPI ::ItemInstallState $getDlcInstalledState() const;
237
238 MCFOLD bool $isContentSearchComplete();
239
240 MCAPI bool $isContentSearchInProgress() const;
241
242 MCAPI bool $isFailed() const;
243
244 MCAPI bool $isCancelled() const;
245
246 MCAPI void $setSilent(bool newSilent);
247
248 MCFOLD bool $isSilent() const;
249
250 MCFOLD ::IContentAcquisition& $contentAcquisition() const;
251
252 MCFOLD ::IStoreCatalogRepository& $storeCatalog() const;
253 // NOLINTEND
254
255public:
256 // vftables
257 // NOLINTBEGIN
258 MCNAPI static void** $vftable();
259 // NOLINTEND
260};
Definition DlcBatchModel.h:5
static MCAPI void ** $vftable()
Definition DlcId.h:5
Definition IContentAcquisition.h:5
Definition IDlcBatchModel.h:5
Definition PackIdVersion.h:10