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
58 _archiveAndUploadPackToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int slotIndex, ::std::string const&);
59
60 MCAPI void _extractPackFromZipAndUpload(
61 ::std::string const& resourcePack,
62 ::ResourceLocation const& resourcePackLocation,
63 ::Core::PathBuffer<::std::string> const& relativePathWithinZip,
64 ::Core::PathBuffer<::std::string> const& resourceZipPath,
65 ::Json::Value const& uploadOptions
66 );
67
68 MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> _uploadResourcePackFolder(
69 ::std::string const& resourcePack,
70 ::ResourceLocation const& resourcePackLocation,
71 ::Core::PathBuffer<::std::string> const& resourceZipPath,
72 ::Json::Value const& uploadOptions
73 );
74
75 MCAPI void uploadResourcePack(
76 ::std::string const& resourcePackName,
77 ::ResourceLocation const& resourceLocation,
78 bool isZipped,
79 ::Core::PathBuffer<::std::string> const& relativePathWithinZip,
80 bool isPremium,
81 ::PackType packType
82 );
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCAPI void* $ctor(::TaskGroup& taskGroup, ::std::shared_ptr<::IFileChunkUploader> fileUploader);
89 // NOLINTEND
90
91public:
92 // destructor thunk
93 // NOLINTBEGIN
94
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCAPI void $archiveAndUploadFileToRealmStorage(
101 ::std::string const& uploadId,
102 ::Core::Path const& path,
103 int const slotIndex,
104 ::std::string const& realmsGuid
105 );
106
107 MCAPI void $uploadFileToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int const slotIndex);
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCAPI static void** $vftable();
114 // NOLINTEND
115};
Definition PathBuffer.h:8
Definition Path.h:15
Definition FileUploadManager.h:14
Definition IFileChunkUploader.h:15
Definition Value.h:16
Definition Path.h:16
Definition ResourceLocation.h:15
Definition ResourcePackFileUploadManager.h:20
Definition TaskGroup.h:22
Definition Alias.h:14