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 initRealmsFileDownloader(
50 ::std::string const&,
51 int const,
52 ::std::string const&,
53 ::FileInfo const&,
54 uint64,
55 ::std::string const&,
56 ::std::function<void(::DownloaderResult)>
57 ) /*override*/;
58
59 // vIndex: 3
60 virtual void initFileDownloader(
61 ::std::string const&,
62 ::std::string const&,
63 ::FileInfo const&,
64 uint64,
65 uint64,
66 ::std::string const&,
67 ::std::function<void(::DownloaderResult)>
68 ) /*override*/;
69
70 // vIndex: 4
71 virtual void downloadFile(
72 ::std::function<void(::std::vector<uchar>, uint64, uint64, ::std::function<void(uint64, bool)>)>,
73 ::std::function<void(::DownloaderState)>
74 ) /*override*/;
75
76 // vIndex: 5
77 virtual bool canCancelDownload() const /*override*/;
78
79 // vIndex: 6
80 virtual void cancelDownload() /*override*/;
81
82 // vIndex: 7
83 virtual uint64 getDownloadTotalSize() const /*override*/;
84
85 // vIndex: 8
86 virtual uint64 getDownloadReceivedSize() const /*override*/;
87
88 // vIndex: 9
89 virtual float getDownloadProgress() const /*override*/;
90
91 // vIndex: 10
92 virtual ::Bedrock::Http::Request _makeRequest();
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98
99 // NOLINTEND
100};
Definition IFileChunkDownloader.h:14
Definition StreamFileDownloader.h:17
Definition FileInfo.h:10
Definition Alias.h:14