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 MCNAPI 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 MCNAPI FileUploadManager(::TaskGroup& taskGroup, ::std::shared_ptr<::IFileChunkUploader> fileUploader);
97
99
100 MCNAPI void _resumeUpload();
101
102 MCNAPI void _uploadChunk(::FileChunkInfo const& chunk);
103
104 MCNAPI void _uploadStream();
105
106 MCNAPI void uploadFile(
107 ::std::string const& uploadId,
108 ::Core::Path const& filePath,
109 bool autoStartUpload,
110 ::Json::Value const& uploadOptions
111 );
112 // NOLINTEND
113
114public:
115 // static variables
116 // NOLINTBEGIN
117 MCNAPI static ::std::string const& BOUNDARY();
118 // NOLINTEND
119
120public:
121 // constructor thunks
122 // NOLINTBEGIN
123 MCNAPI void* $ctor(::TaskGroup& taskGroup, ::std::shared_ptr<::IFileChunkUploader> fileUploader);
124 // NOLINTEND
125
126public:
127 // destructor thunk
128 // NOLINTBEGIN
129 MCNAPI void $dtor();
130 // NOLINTEND
131
132public:
133 // virtual function thunks
134 // NOLINTBEGIN
135 MCNAPI float $getUploadProgress() const;
136
137 MCNAPI void $uploadFileToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int const slotIndex);
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCNAPI static void** $vftable();
144 // NOLINTEND
145};
Definition Path.h:17
Definition FileUploadManager.h:14
MCAPI FileUploadManager(::TaskGroup &taskGroup, ::std::shared_ptr<::IFileChunkUploader > fileUploader)
MCAPI float $getUploadProgress() const
MCAPI void _uploadChunk(::FileChunkInfo const &chunk)
MCAPI void uploadFile(::std::string const &uploadId, ::Core::Path const &filePath, bool autoStartUpload, ::Json::Value const &uploadOptions)
MCAPI void * $ctor(::TaskGroup &taskGroup, ::std::shared_ptr<::IFileChunkUploader > fileUploader)
static MCAPI void ** $vftable()
MCAPI void _resumeUpload()
MCAPI void _generateMultiPartHelper()
static MCAPI ::std::string const & BOUNDARY()
MCAPI void _uploadStream()
MCAPI void $uploadFileToRealmStorage(::std::string const &uploadId, ::Core::Path const &path, int const slotIndex)
MCAPI void $dtor()
Definition IFileChunkUploader.h:15
Definition Value.h:16
Definition Path.h:16
Definition TaskGroup.h:115
Definition FileChunkInfo.h:5
Definition FileUploadManager.h:22
Definition Alias.h:14