#include <FileListTransferCBInterface.h>
Inherited by AutopatcherClientCallback, and DDTCallback.
Public Member Functions | |
virtual bool | OnFile (OnFileStruct *onFileStruct)=0 |
virtual void | OnFileProgress (OnFileStruct *onFileStruct, unsigned int partCount, unsigned int partTotal, unsigned int partLength) |
virtual bool | Update (void) |
virtual bool | OnDownloadComplete (void) |
virtual void | OnDereference (void) |
virtual bool FileListTransferCBInterface::OnFile | ( | OnFileStruct * | onFileStruct | ) | [pure virtual] |
Got a file This structure is only valid for the duration of this function call.
virtual void FileListTransferCBInterface::OnFileProgress | ( | OnFileStruct * | onFileStruct, | |
unsigned int | partCount, | |||
unsigned int | partTotal, | |||
unsigned int | partLength | |||
) | [inline, virtual] |
Got part of a big file. You can get these notifications by calling RakPeer::SetSplitMessageProgressInterval Otherwise you will only get complete files.
virtual bool FileListTransferCBInterface::Update | ( | void | ) | [inline, virtual] |
Called while the handler is active by FileListTransfer Return false when you are done with the class At that point OnDereference will be called and the class will no longer be maintained by the FileListTransfer plugin.
virtual bool FileListTransferCBInterface::OnDownloadComplete | ( | void | ) | [inline, virtual] |
Called when the download is completed. If you are finished with this class, return false At that point OnDereference will be called and the class will no longer be maintained by the FileListTransfer plugin. Otherwise return true, and Update will continue to be called.
virtual void FileListTransferCBInterface::OnDereference | ( | void | ) | [inline, virtual] |
This function is called when this instance is about to be dereferenced by the FileListTransfer plugin. Update will no longer be called. It will will be deleted automatically if true was passed to FileListTransfer::SetupReceive::deleteHandler Otherwise it is up to you to delete it yourself.