OpenTTD
|
Asynchronous callback. More...
Public Member Functions | |
void | OnConnect (bool success) |
Callback for when the connection has finished. | |
void | OnDisconnect () |
Callback for when the connection got disconnected. | |
void | OnDownloadComplete (ContentID cid) |
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 () |
Silentium. |
Asynchronous callback.
Definition at line 1704 of file console_cmds.cpp.
|
inlinevirtual |
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 1705 of file console_cmds.cpp.
References CC_DEFAULT, and IConsolePrintF().
|
inlinevirtual |
We have finished downloading a file.
cid | the ContentID of the downloaded file |
Reimplemented from ContentCallback.
Definition at line 1715 of file console_cmds.cpp.
References CC_DEFAULT, and IConsolePrintF().