|
OpenTTD Source 20251116-master-g21329071df
|
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 2202 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 2203 of file console_cmds.cpp.
References CC_DEFAULT, and IConsolePrint().
|
inlineoverridevirtual |
Callback for when the connection got disconnected.
Reimplemented from ContentCallback.
Definition at line 2208 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 2213 of file console_cmds.cpp.
References CC_DEFAULT, and IConsolePrint().