28class ResourcePackFileUploadManager :
public ::FileUploadManager {
32 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::AppPlatform>> mAppPlatform;
36 ::std::vector<::std::shared_ptr<::ResourcePackPathLifetimeHelpers::ScopeDestroyedPath const>>>
38 ::ll::TypedStorage<8, 8, ::ResourcePackPathLifetimeHelpers::ResourcePackPathCache&> mResourcePackPathCache;
39 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::Bedrock::Threading::SharedAsync<void>>>>
41 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::Core::ZipUtils::IZipUtility>>> mZipUtility;
46 ResourcePackFileUploadManager& operator=(ResourcePackFileUploadManager
const&);
47 ResourcePackFileUploadManager(ResourcePackFileUploadManager
const&);
48 ResourcePackFileUploadManager();
53 virtual void archiveAndUploadFileToRealmStorage(
54 ::std::string
const& uploadId,
57 ::std::string
const& realmsGuid
61 uploadFileToRealmStorage(::std::string
const& uploadId,
::Core::Path const& path,
int const slotIndex) ;
67 MCAPI ResourcePackFileUploadManager(
68 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform,
70 ::std::shared_ptr<::IFileChunkUploader> fileUploader,
71 ::std::unique_ptr<::Core::ZipUtils::IZipUtility>&& zipUtility,
77 MCAPI ResourcePackFileUploadManager(
78 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform,
80 ::std::shared_ptr<::IFileChunkUploader> fileUploader,
81 ::Bedrock::NotNullNonOwnerPtr<::FileArchiver>
const&
FileArchiver,
82 ::std::unique_ptr<::Core::ZipUtils::IZipUtility>&& zipUtility,
90 MCAPI
void _archiveAndUploadPackToRealmStorage(
91 ::std::string
const& uploadId,
97 MCAPI ::Bedrock::Threading::Async<void> _extractPackFromZipAndUpload(
98 ::std::string
const& resourcePack,
105 MCAPI
bool _unzipEmbeddedResourcePackForUpload(
111 MCAPI ::Bedrock::Threading::Async<void> _uploadResourcePackFolder(
112 ::std::string
const& resourcePack,
118 MCAPI
bool _zipResourcePackForUpload(
123 MCAPI ::Bedrock::Threading::Async<void> uploadResourcePack(
124 ::std::string
const& resourcePackName,
137 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform,
139 ::std::shared_ptr<::IFileChunkUploader> fileUploader,
140 ::std::unique_ptr<::Core::ZipUtils::IZipUtility>&& zipUtility,
147 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform,
149 ::std::shared_ptr<::IFileChunkUploader> fileUploader,
150 ::Bedrock::NotNullNonOwnerPtr<::FileArchiver>
const&
FileArchiver,
151 ::std::unique_ptr<::Core::ZipUtils::IZipUtility>&& zipUtility,
161 MCAPI
void $archiveAndUploadFileToRealmStorage(
162 ::std::string
const& uploadId,
165 ::std::string
const& realmsGuid
168 MCAPI
void $uploadFileToRealmStorage(::std::string
const& uploadId,
::Core::Path const& path,
int const slotIndex);