OpenTTD Source 20241224-master-gee860a5c8e
|
Asynchronous callback. More...
Public Member Functions | |
void | OnConnect (bool success) override |
Callback for when the connection has finished. | |
void | OnDisconnect () override |
Callback for when the connection got disconnected. | |
void | OnDownloadComplete (ContentID cid) override |
We have finished downloading a file. | |
Public Member Functions inherited from ContentCallback | |
virtual void | OnReceiveContentInfo (const ContentInfo *ci) |
We received a content info. | |
virtual void | OnDownloadProgress (const ContentInfo *ci, int bytes) |
We have progress in the download of a file. | |
virtual | ~ContentCallback ()=default |
Silentium. | |
Asynchronous callback.
Definition at line 2112 of file console_cmds.cpp.
|
inlineoverridevirtual |
Callback for when the connection has finished.
success | whether the connection was made or that we failed to make it |
Reimplemented from ContentCallback.
Definition at line 2113 of file console_cmds.cpp.
References CC_DEFAULT, and IConsolePrint().
|
inlineoverridevirtual |
Callback for when the connection got disconnected.
Reimplemented from ContentCallback.
Definition at line 2118 of file console_cmds.cpp.
References CC_DEFAULT, and IConsolePrint().
|
inlineoverridevirtual |
We have finished downloading a file.
cid | the ContentID of the downloaded file |
Reimplemented from ContentCallback.
Definition at line 2123 of file console_cmds.cpp.
References CC_DEFAULT, and IConsolePrint().