OpenTTD
|
Callbacks for notifying others about incoming data. More...
#include <network_content.h>
Public Member Functions | |
virtual void | OnConnect (bool success) |
Callback for when the connection has finished. More... | |
virtual void | OnDisconnect () |
Callback for when the connection got disconnected. | |
virtual void | OnReceiveContentInfo (const ContentInfo *ci) |
We received a content info. More... | |
virtual void | OnDownloadProgress (const ContentInfo *ci, int bytes) |
We have progress in the download of a file. More... | |
virtual void | OnDownloadComplete (ContentID cid) |
We have finished downloading a file. More... | |
virtual | ~ContentCallback () |
Silentium. | |
Callbacks for notifying others about incoming data.
Definition at line 31 of file network_content.h.
|
inlinevirtual |
Callback for when the connection has finished.
success | whether the connection was made or that we failed to make it |
Reimplemented in ConsoleContentCallback, NetworkContentListWindow, BootstrapAskForDownloadWindow, and ClientNetworkContentSocketHandler.
Definition at line 36 of file network_content.h.
Referenced by ClientNetworkContentSocketHandler::OnConnect().
|
inlinevirtual |
We have finished downloading a file.
cid | the ContentID of the downloaded file |
Reimplemented in ConsoleContentCallback, NetworkContentListWindow, ClientNetworkContentSocketHandler, and BootstrapContentDownloadStatusWindow.
Definition at line 60 of file network_content.h.
Referenced by ClientNetworkContentSocketHandler::OnDownloadComplete().
|
inlinevirtual |
We have progress in the download of a file.
ci | the content info of the file |
bytes | the number of bytes downloaded since the previous call |
Reimplemented in NetworkContentDownloadStatusWindow, ClientNetworkContentSocketHandler, and BaseNetworkContentDownloadStatusWindow.
Definition at line 54 of file network_content.h.
Referenced by ClientNetworkContentSocketHandler::OnDownloadProgress().
|
inlinevirtual |
We received a content info.
ci | the content info |
Reimplemented in NetworkContentListWindow, BootstrapAskForDownloadWindow, and ClientNetworkContentSocketHandler.
Definition at line 47 of file network_content.h.
Referenced by ClientNetworkContentSocketHandler::OnReceiveContentInfo().