OpenTTD Source  12.0-beta2
ConsoleContentCallback Struct Reference

Asynchronous callback. More...

Inheritance diagram for ConsoleContentCallback:
ContentCallback

Public Member Functions

void OnConnect (bool success)
 Callback for when the connection has finished. More...
 
void OnDisconnect ()
 Callback for when the connection got disconnected.
 
void OnDownloadComplete (ContentID cid)
 We have finished downloading a file. More...
 
- Public Member Functions inherited from ContentCallback
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 ~ContentCallback ()
 Silentium.
 

Detailed Description

Asynchronous callback.

Definition at line 1792 of file console_cmds.cpp.

Member Function Documentation

◆ OnConnect()

void ConsoleContentCallback::OnConnect ( bool  success)
inlinevirtual

Callback for when the connection has finished.

Parameters
successwhether the connection was made or that we failed to make it

Reimplemented from ContentCallback.

Definition at line 1793 of file console_cmds.cpp.

References CC_DEFAULT, and IConsolePrint().

◆ OnDownloadComplete()

void ConsoleContentCallback::OnDownloadComplete ( ContentID  cid)
inlinevirtual

We have finished downloading a file.

Parameters
cidthe ContentID of the downloaded file

Reimplemented from ContentCallback.

Definition at line 1803 of file console_cmds.cpp.

References CC_DEFAULT, and IConsolePrint().


The documentation for this struct was generated from the following file: