OpenTTD Source 20250509-master-ga45f23686d
|
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. | |
![]() | |
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 2195 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 2196 of file console_cmds.cpp.
References CC_DEFAULT, and IConsolePrint().
|
inlineoverridevirtual |
Callback for when the connection got disconnected.
Reimplemented from ContentCallback.
Definition at line 2201 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 2206 of file console_cmds.cpp.
References CC_DEFAULT, and IConsolePrint().