Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI DlcBatchModel(::DlcBatchModel const&);
137
138 MCNAPI explicit DlcBatchModel(::IDlcBatchModel const& ref);
139
140 MCNAPI DlcBatchModel(
141 ::IContentAcquisition& contentAcquisition,
142 ::IStoreCatalogRepository& storeCatalog,
143 ::std::vector<::std::string> const& productIds
144 );
145
146 MCNAPI DlcBatchModel(
147 ::IContentAcquisition& contentAcquisition,
148 ::IStoreCatalogRepository& storeCatalog,
149 ::std::vector<::DlcId> dlcIds,
150 ::std::vector<::PackIdVersion> packIds
151 );
152
153 MCNAPI bool _canBeginDownload() const;
154 // NOLINTEND
155
156public:
157 // constructor thunks
158 // NOLINTBEGIN
159 MCNAPI void* $ctor(::DlcBatchModel const&);
160
161 MCNAPI void* $ctor(::IDlcBatchModel const& ref);
162
163 MCNAPI void* $ctor(
164 ::IContentAcquisition& contentAcquisition,
165 ::IStoreCatalogRepository& storeCatalog,
166 ::std::vector<::std::string> const& productIds
167 );
168
169 MCNAPI void* $ctor(
170 ::IContentAcquisition& contentAcquisition,
171 ::IStoreCatalogRepository& storeCatalog,
172 ::std::vector<::DlcId> dlcIds,
173 ::std::vector<::PackIdVersion> packIds
174 );
175 // NOLINTEND
176
177public:
178 // destructor thunk
179 // NOLINTBEGIN
180 MCNAPI void $dtor();
181 // NOLINTEND
182
183public:
184 // virtual function thunks
185 // NOLINTBEGIN
186 MCNAPI bool $containsProductId(::std::string const& productId) const;
187
188 MCNAPI void $searchForProductIds(::std::function<void()> searchCompleteCallback);
189
191
192 MCNAPI void $beginPackDownload();
193
195
196 MCNAPI void $beginAutoDownload();
197
199
201
202 MCNAPI void $cancelDownload();
203
205
206 MCNAPI void $cancelPendingImport();
207
208 MCNAPI void $pauseDownload();
209
210 MCNAPI void $resumeDownload();
211
212 MCNAPI bool $isDownloadingOrImporting() const;
213
214 MCNAPI bool $isDownloading() const;
215
216 MCNAPI bool $isDownloadComplete() const;
217
218 MCNAPI uint64 $getDownloadSize() const;
219
220 MCNAPI uint64 $getDownloadedBytes() const;
221
222 MCNAPI float $getDownloadProgress() const;
223
224 MCNAPI uint64 $getDownloadedCount() const;
225
226 MCNAPI ::std::optional<int> $getIndexOfActiveDownload() const;
227
228 MCNAPI bool $isImporting() const;
229
230 MCNAPI bool $isImportComplete() const;
231
232 MCNAPI bool $isImportWaiting() const;
233
234 MCNAPI uint64 $getImportTotal() const;
235
236 MCNAPI uint64 $getImportedCount() const;
237
238 MCNAPI float $getImportProgress() const;
239
240 MCNAPI ::std::optional<int> $getIndexOfActiveImport() const;
241
242 MCNAPI ::std::vector<::DlcId> const& $getDlcIds() const;
243
244 MCNAPI ::std::vector<::PackIdVersion> const& $getPackIds() const;
245
246 MCNAPI ::std::vector<::std::string> $getProductIdList() const;
247
248 MCNAPI ::ItemInstallState $getDlcInstalledState() const;
249
251
252 MCNAPI bool $isContentSearchInProgress() const;
253
254 MCNAPI bool $isFailed() const;
255
256 MCNAPI bool $isCancelled() const;
257
258 MCNAPI void $setSilent(bool newSilent);
259
260 MCNAPI bool $isSilent() const;
261
263
264 MCNAPI ::IStoreCatalogRepository& $storeCatalog() const;
265 // NOLINTEND
266
267public:
268 // vftables
269 // NOLINTBEGIN
270 MCNAPI static void** $vftable();
271 // NOLINTEND
272};
Definition DlcBatchModel.h:5
MCAPI uint64 $getImportTotal() const
MCAPI void * $ctor(::DlcBatchModel const &)
MCAPI uint64 $getImportedCount() const
MCAPI float $getImportProgress() const
MCAPI ::std::optional< int > $getIndexOfActiveDownload() const
MCAPI void $cancelPendingDownload()
MCAPI void $beginExclusiveDownload()
MCAPI bool $isCancelled() const
MCAPI bool $isDownloadingOrImporting() const
MCAPI bool $isDownloading() const
MCAPI void $dtor()
MCAPI bool _canBeginDownload() const
MCAPI void $cancelDownload()
MCAPI::IStoreCatalogRepository & $storeCatalog() const
MCAPI::ItemInstallState $getDlcInstalledState() const
MCAPI bool $isImporting() const
MCAPI void $beginPackDownload()
MCAPI bool $isImportWaiting() const
MCAPI void $setSilent(bool newSilent)
MCAPI uint64 $getDownloadedCount() const
MCAPI bool $containsProductId(::std::string const &productId) const
MCAPI float $getDownloadProgress() const
MCAPI void $beginPackDownloadWithPossibleThrottleWarning()
MCAPI uint64 $getDownloadedBytes() const
MCAPI void $cancelPendingImport()
MCAPI bool $isContentSearchInProgress() const
MCAPI void $beginAutoDownload()
MCAPI void $cancelInactiveDownloads()
static MCAPI void ** $vftable()
MCAPI::IContentAcquisition & $contentAcquisition() const
MCAPI void $resumeDownload()
MCAPI void $beginWorldPackDownload()
MCAPI uint64 $getDownloadSize() const
MCAPI ::std::vector<::PackIdVersion > const & $getPackIds() const
MCAPI void $pauseDownload()
MCAPI bool $isSilent() const
MCAPI bool $isDownloadComplete() const
MCAPI ::std::vector<::DlcId > const & $getDlcIds() const
MCAPI bool $isImportComplete() const
MCAPI bool $isContentSearchComplete()
MCAPI void $searchForProductIds(::std::function< void()> searchCompleteCallback)
MCAPI bool $isFailed() const
MCAPI ::std::vector<::std::string > $getProductIdList() const
MCAPI ::std::optional< int > $getIndexOfActiveImport() const
Definition DlcId.h:5
Definition IContentAcquisition.h:5
Definition IDlcBatchModel.h:5
STL namespace.
Definition PackIdVersion.h:10