LeviLamina
Loading...
Searching...
No Matches
FileUploadManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8class TaskGroup;
9struct FileChunkInfo;
10namespace Core { class Path; }
11namespace Json { class Value; }
12// clang-format on
13
14class FileUploadManager : public ::std::enable_shared_from_this<::FileUploadManager> {
15public:
16 // FileUploadManager inner types declare
17 // clang-format off
19 // clang-format on
20
21 // FileUploadManager inner types define
23 public:
24 // member variables
25 // NOLINTBEGIN
33 // NOLINTEND
34
35 public:
36 // prevent constructor by default
40
41 public:
42 // member functions
43 // NOLINTBEGIN
45 // NOLINTEND
46
47 public:
48 // destructor thunk
49 // NOLINTBEGIN
50 MCFOLD void $dtor();
51 // NOLINTEND
52 };
53
54public:
55 // member variables
56 // NOLINTBEGIN
68 // NOLINTEND
69
70public:
71 // prevent constructor by default
72 FileUploadManager& operator=(FileUploadManager const&);
75
76public:
77 // virtual functions
78 // NOLINTBEGIN
79 // vIndex: 0
80 virtual ~FileUploadManager();
81
82 // vIndex: 1
83 virtual float getUploadProgress() const;
84
85 // vIndex: 2
86 virtual void
87 archiveAndUploadFileToRealmStorage(::std::string const&, ::Core::Path const&, int const, ::std::string const&) = 0;
88
89 // vIndex: 3
90 virtual void uploadFileToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int const slotIndex);
91 // NOLINTEND
92
93public:
94 // member functions
95 // NOLINTBEGIN
96 MCAPI FileUploadManager(::TaskGroup& taskGroup, ::std::shared_ptr<::IFileChunkUploader> fileUploader);
97
98 MCAPI void _generateMultiPartHelper();
99
100 MCAPI void _resumeUpload();
101
102 MCAPI void _uploadChunk(::FileChunkInfo const& chunk);
103
104 MCAPI void _uploadStream();
105
106 MCAPI void addCallbackQueue(::std::function<void()> callback);
107
108 MCAPI void uploadFile(
109 ::std::string const& uploadId,
110 ::Core::Path const& filePath,
111 bool autoStartUpload,
112 ::Json::Value const& uploadOptions
113 );
114 // NOLINTEND
115
116public:
117 // static variables
118 // NOLINTBEGIN
119 MCAPI static ::std::string const& BOUNDARY();
120 // NOLINTEND
121
122public:
123 // constructor thunks
124 // NOLINTBEGIN
125 MCAPI void* $ctor(::TaskGroup& taskGroup, ::std::shared_ptr<::IFileChunkUploader> fileUploader);
126 // NOLINTEND
127
128public:
129 // destructor thunk
130 // NOLINTBEGIN
131 MCAPI void $dtor();
132 // NOLINTEND
133
134public:
135 // virtual function thunks
136 // NOLINTBEGIN
137 MCAPI float $getUploadProgress() const;
138
139 MCAPI void $uploadFileToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int const slotIndex);
140 // NOLINTEND
141
142public:
143 // vftables
144 // NOLINTBEGIN
145 MCAPI static void** $vftable();
146 // NOLINTEND
147};
Definition Path.h:15
Definition FileUploadManager.h:14
Definition IFileChunkUploader.h:15
Definition Value.h:16
Definition Path.h:16
Definition TaskGroup.h:22
Definition FileChunkInfo.h:5
Definition FileUploadManager.h:22
Definition Alias.h:14