uint32_t cur_id
The current ID of the downloaded file.
BaseNetworkContentDownloadStatusWindow(WindowDesc &desc)
Create the window with the given description.
void OnDownloadProgress(const ContentInfo &ci, int64_t bytes) override
We have progress in the download of a file.
uint total_files
Number of files to download.
uint64_t total_bytes
Number of bytes to download.
void DrawWidget(const Rect &r, WidgetID widget) const override
Draw the contents of a nested widget.
void Close(int data=0) override
Hide the window and all its child windows, and mark them for a later deletion.
std::string name
The current name of the downloaded file.
void UpdateWidgetSize(WidgetID widget, Dimension &size, const Dimension &padding, Dimension &fill, Dimension &resize) override
Update size and resize step of a widget in the window.
uint64_t downloaded_bytes
Number of bytes downloaded.
uint downloaded_files
Number of files downloaded.
Part of the network protocol handling content distribution.
void BuildContentTypeStringList()
Build array of all strings corresponding to the content types.
Callbacks for notifying others about incoming data.
Container for all important information about a piece of content.