LeviLamina
Loading...
Searching...
No Matches
ResourcePackFileUploadManager.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/deps/core/resource/PackType.h"
8#include "mc/deps/core/threading/IAsyncResult.h"
9#include "mc/util/FileUploadManager.h"
10
11// auto generated forward declare list
12// clang-format off
15class TaskGroup;
16namespace Core { class Path; }
17namespace Json { class Value; }
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 // vIndex: 0
37 virtual ~ResourcePackFileUploadManager() /*override*/ = default;
38
39 // vIndex: 2
40 virtual void archiveAndUploadFileToRealmStorage(
41 ::std::string const& uploadId,
42 ::Core::Path const& path,
43 int const slotIndex,
44 ::std::string const& realmsGuid
45 ) /*override*/;
46
47 // vIndex: 3
48 virtual void
49 uploadFileToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int const slotIndex) /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI ResourcePackFileUploadManager(::TaskGroup& taskGroup, ::std::shared_ptr<::IFileChunkUploader> fileUploader);
56
57 MCAPI void _archiveAndUploadPackToRealmStorage(
58 ::std::string const& uploadId,
59 ::Core::Path const& path,
60 int slotIndex,
61 ::std::string const&
62 );
63
64 MCAPI void _extractPackFromZipAndUpload(
65 ::std::string const& resourcePack,
66 ::ResourceLocation const& resourcePackLocation,
67 ::Core::PathBuffer<::std::string> const& relativePathWithinZip,
68 ::Core::PathBuffer<::std::string> const& resourceZipPath,
69 ::Json::Value const& uploadOptions
70 );
71
72 MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> _uploadResourcePackFolder(
73 ::std::string const& resourcePack,
74 ::ResourceLocation const& resourcePackLocation,
75 ::Core::PathBuffer<::std::string> const& resourceZipPath,
76 ::Json::Value const& uploadOptions
77 );
78
79 MCAPI void uploadResourcePack(
80 ::std::string const& resourcePackName,
81 ::ResourceLocation const& resourceLocation,
82 bool isZipped,
83 ::Core::PathBuffer<::std::string> const& relativePathWithinZip,
84 bool isPremium,
85 ::PackType packType
86 );
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCAPI void* $ctor(::TaskGroup& taskGroup, ::std::shared_ptr<::IFileChunkUploader> fileUploader);
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI void $archiveAndUploadFileToRealmStorage(
99 ::std::string const& uploadId,
100 ::Core::Path const& path,
101 int const slotIndex,
102 ::std::string const& realmsGuid
103 );
104
105 MCAPI void $uploadFileToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int const slotIndex);
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
Definition PathBuffer.h:8
Definition Path.h:17
Definition FileUploadManager.h:14
Definition IFileChunkUploader.h:15
Definition Value.h:16
Definition Path.h:16
Definition ResourceLocation.h:14
Definition ResourcePackFileUploadManager.h:20
static MCAPI void ** $vftable()
Definition TaskGroup.h:104
Definition Alias.h:14