LeviLamina
Loading...
Searching...
No Matches
StreamFileDownloader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/DownloaderResult.h"
7#include "mc/util/DownloaderState.h"
8#include "mc/util/IFileChunkDownloader.h"
9
10// auto generated forward declare list
11// clang-format off
12struct FileInfo;
13namespace Bedrock::Http { class Request; }
14// clang-format on
15
17 public ::std::enable_shared_from_this<::StreamFileDownloader> {
18public:
19 // member variables
20 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 0
43 virtual ~StreamFileDownloader() /*override*/ = default;
44
45 // vIndex: 1
46 virtual void update() /*override*/;
47
48 // vIndex: 2
49 virtual void
50 initRealmsFileDownloader(::std::string const&, int const, ::std::string const&, ::FileInfo const&, uint64, ::std::string const&, ::std::function<void(::DownloaderResult)>) /*override*/
51 ;
52
53 // vIndex: 3
54 virtual void
55 initFileDownloader(::std::string const&, ::std::string const&, ::FileInfo const&, uint64, uint64, ::std::string const&, ::std::function<void(::DownloaderResult)>) /*override*/
56 ;
57
58 // vIndex: 4
59 virtual void
60 downloadFile(::std::function<void(::std::vector<uchar>, uint64, uint64, ::std::function<void(uint64, bool)>)>, ::std::function<void(::DownloaderState)>) /*override*/
61 ;
62
63 // vIndex: 5
64 virtual bool canCancelDownload() const /*override*/;
65
66 // vIndex: 6
67 virtual void cancelDownload() /*override*/;
68
69 // vIndex: 7
70 virtual uint64 getDownloadTotalSize() const /*override*/;
71
72 // vIndex: 8
73 virtual uint64 getDownloadReceivedSize() const /*override*/;
74
75 // vIndex: 9
76 virtual float getDownloadProgress() const /*override*/;
77
78 // vIndex: 10
79 virtual ::Bedrock::Http::Request _makeRequest();
80 // NOLINTEND
81
82public:
83 // destructor thunk
84 // NOLINTBEGIN
85
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91
92 // NOLINTEND
93};
Definition IFileChunkDownloader.h:14
Definition StreamFileDownloader.h:17
Definition FileInfo.h:10
Definition Alias.h:14