3#include "mc/_HeaderOutputPredefine.h"
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"
15struct IStoreCatalogRepository;
22 enum class DlcProductIdSearch :
int {};
27 ::ll::TypedStorage<8, 8, ::IContentAcquisition&> mContentAcquisition;
28 ::ll::TypedStorage<8, 8, ::IStoreCatalogRepository&> mStoreCatalog;
29 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mDlcBatchExistenceTracker;
30 ::ll::TypedStorage<8, 24, ::std::vector<::DlcId>> mDlcIds;
31 ::ll::TypedStorage<8, 24, ::std::vector<::PackIdVersion>> mPackIds;
32 ::ll::TypedStorage<4, 4, ::DlcBatchModel::DlcProductIdSearch> mDlcProductIdSearch;
33 ::ll::TypedStorage<4, 4, ::InitiatorCategory> mInitiatorCategory;
34 ::ll::TypedStorage<1, 1, bool> mSilent;
35 ::ll::TypedStorage<8, 16, ::std::optional<::IContentAcquisition::ImportCallbackId>> mBatchId;
40 DlcBatchModel& operator=(DlcBatchModel
const&);
46 virtual ~DlcBatchModel() ;
48 virtual bool containsProductId(::std::string
const& productId)
const ;
50 virtual void searchForProductIds(::std::function<
void(
bool)> searchCompleteCallback) ;
52 virtual void beginExclusiveDownload() ;
54 virtual void beginPackDownload() ;
56 virtual void beginPackDownloadWithPossibleThrottleWarning() ;
58 virtual void beginAutoDownload() ;
60 virtual void beginWorldPackDownload() ;
62 virtual void cancelInactiveDownloads() ;
64 virtual void cancelDownload() ;
66 virtual void cancelPendingDownload() ;
68 virtual void cancelPendingImport() ;
70 virtual void pauseDownload() ;
72 virtual void resumeDownload() ;
74 virtual bool isDownloadingOrImporting() const ;
76 virtual
bool isDownloading() const ;
78 virtual
bool isDownloadComplete() const ;
80 virtual uint64 getDownloadSize() const ;
82 virtual uint64 getDownloadedBytes() const ;
84 virtual
float getDownloadProgress() const ;
86 virtual uint64 getDownloadedCount() const ;
88 virtual ::std::optional<
int> getIndexOfActiveDownload() const ;
90 virtual
bool isImporting() const ;
92 virtual
bool isImportWaiting() const ;
94 virtual uint64 getImportTotal() const ;
96 virtual uint64 getImportedCount() const ;
98 virtual
float getImportProgress() const ;
100 virtual
int getIndexOfActiveImport() const ;
102 virtual ::std::vector<::DlcId> const& getDlcIds() const ;
104 virtual ::ItemInstallState getDlcInstalledState() const ;
106 virtual
bool isContentSearchComplete() ;
108 virtual
bool isFailed() const ;
110 virtual
bool isCancelled() const ;
112 virtual
void setSilent(
bool newSilent) ;
114 virtual
bool isSilent() const ;
116 virtual ::IContentAcquisition& contentAcquisition() const ;
118 virtual ::IStoreCatalogRepository& storeCatalog() const ;
124 MCAPI DlcBatchModel(::DlcBatchModel const&);
126 MCAPI explicit DlcBatchModel(::IDlcBatchModel const& ref);
129 ::IContentAcquisition& contentAcquisition,
130 ::IStoreCatalogRepository& storeCatalog,
131 ::std::vector<::DlcId> const& dlcIds
135 ::IContentAcquisition& contentAcquisition,
136 ::IStoreCatalogRepository& storeCatalog,
137 ::std::vector<::PackIdVersion> const& packIds
141 ::IContentAcquisition& contentAcquisition,
142 ::IStoreCatalogRepository& storeCatalog,
143 ::std::vector<::std::
string> const& productIds
146 MCAPI
bool _canBeginDownload() const;
152 MCAPI
void* $ctor(::DlcBatchModel const&);
154 MCAPI
void* $ctor(::IDlcBatchModel const& ref);
157 ::IContentAcquisition& contentAcquisition,
158 ::IStoreCatalogRepository& storeCatalog,
159 ::std::vector<::DlcId> const& dlcIds
163 ::IContentAcquisition& contentAcquisition,
164 ::IStoreCatalogRepository& storeCatalog,
165 ::std::vector<::PackIdVersion> const& packIds
169 ::IContentAcquisition& contentAcquisition,
170 ::IStoreCatalogRepository& storeCatalog,
171 ::std::vector<::std::
string> const& productIds
184 MCAPI
bool $containsProductId(::std::
string const& productId) const;
186 MCAPI
void $searchForProductIds(::std::function<
void(
bool)> searchCompleteCallback);
188 MCAPI
void $beginExclusiveDownload();
190 MCAPI
void $beginPackDownload();
192 MCAPI
void $beginPackDownloadWithPossibleThrottleWarning();
194 MCAPI
void $beginAutoDownload();
196 MCAPI
void $beginWorldPackDownload();
198 MCAPI
void $cancelInactiveDownloads();
200 MCAPI
void $cancelDownload();
202 MCAPI
void $cancelPendingDownload();
204 MCAPI
void $cancelPendingImport();
206 MCAPI
void $pauseDownload();
208 MCAPI
void $resumeDownload();
210 MCAPI
bool $isDownloadingOrImporting() const;
212 MCAPI
bool $isDownloading() const;
214 MCAPI
bool $isDownloadComplete() const;
216 MCAPI uint64 $getDownloadSize() const;
218 MCAPI uint64 $getDownloadedBytes() const;
220 MCAPI
float $getDownloadProgress() const;
222 MCAPI uint64 $getDownloadedCount() const;
224 MCAPI ::std::optional<
int> $getIndexOfActiveDownload() const;
226 MCAPI
bool $isImporting() const;
228 MCAPI
bool $isImportWaiting() const;
230 MCAPI uint64 $getImportTotal() const;
232 MCAPI uint64 $getImportedCount() const;
234 MCAPI
float $getImportProgress() const;
236 MCAPI
int $getIndexOfActiveImport() const;
238 MCFOLD ::std::vector<::DlcId> const& $getDlcIds() const;
240 MCAPI ::ItemInstallState $getDlcInstalledState() const;
242 MCFOLD
bool $isContentSearchComplete();
244 MCAPI
bool $isFailed() const;
246 MCAPI
bool $isCancelled() const;
248 MCAPI
void $setSilent(
bool newSilent);
250 MCFOLD
bool $isSilent() const;
252 MCFOLD ::IContentAcquisition& $contentAcquisition() const;
254 MCFOLD ::IStoreCatalogRepository& $storeCatalog() const;
Definition DlcBatchModel.h:5
static MCAPI void ** $vftable()
Definition IDlcBatchModel.h:5
Definition IContentAcquisition.h:5
Definition PackIdVersion.h:10