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; }
18namespace ResourcePackPathLifetimeHelpers { class ResourcePackPathCache; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
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
51 // vIndex: 0
52 virtual ~ResourcePackFileUploadManager() /*override*/ = default;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
59 ::TaskGroup& taskGroup,
60 ::std::shared_ptr<::IFileChunkUploader> fileUploader,
61 ::std::shared_ptr<::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>>> previousUpload,
63 );
64
65 MCAPI void _addZipPath(::Core::PathBuffer<::std::string> const& resourceZipPath);
66
67 MCAPI void _archiveAndUploadPackToRealmStorage(
68 ::std::string const& uploadId,
69 ::Core::Path const& path,
70 int slotIndex,
71 ::std::string const&
72 );
73
74 MCAPI void _extractPackFromZipAndUpload(
75 ::std::string const& resourcePack,
76 ::ResourceLocation const& resourcePackLocation,
77 ::Core::PathBuffer<::std::string> const& relativePathWithinZip,
78 ::Core::PathBuffer<::std::string> const& resourceZipPath,
79 ::Json::Value const& uploadOptions
80 );
81
82 MCAPI ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> _uploadResourcePackFolder(
83 ::std::string const& resourcePack,
84 ::ResourceLocation const& resourcePackLocation,
85 ::Core::PathBuffer<::std::string> const& resourceZipPath,
86 ::Json::Value const& uploadOptions
87 );
88
89 MCAPI void uploadResourcePack(
90 ::std::string const& resourcePackName,
91 ::ResourceLocation const& resourceLocation,
92 bool isZipped,
93 ::Core::PathBuffer<::std::string> const& relativePathWithinZip,
94 bool isPremium,
95 ::PackType packType
96 );
97 // NOLINTEND
98
99public:
100 // constructor thunks
101 // NOLINTBEGIN
102 MCAPI void* $ctor(
103 ::TaskGroup& taskGroup,
104 ::std::shared_ptr<::IFileChunkUploader> fileUploader,
105 ::std::shared_ptr<::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>>> previousUpload,
107 );
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113 MCAPI void $archiveAndUploadFileToRealmStorage(
114 ::std::string const& uploadId,
115 ::Core::Path const& path,
116 int const slotIndex,
117 ::std::string const& realmsGuid
118 );
119
120 MCAPI void $uploadFileToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int const slotIndex);
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCNAPI static void** $vftable();
127 // NOLINTEND
128};
Definition IAsyncResult.h:10
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:21
static MCAPI void ** $vftable()
Definition ResourcePackPathCache.h:7
Definition TaskGroup.h:115
Definition Alias.h:14