PCL
|
Typedefs | |
using | pcl::NetworkTransfer::download_event_handler = bool(Control::*)(NetworkTransfer &sender, const void *buffer, fsize_type size) |
using | pcl::NetworkTransfer::progress_event_handler = bool(Control::*)(NetworkTransfer &sender, fsize_type downloadTotal, fsize_type downloadCurrent, fsize_type uploadTotal, fsize_type uploadCurrent) |
using | pcl::NetworkTransfer::upload_event_handler = fsize_type(Control::*)(NetworkTransfer &sender, void *buffer, fsize_type maxSize) |
Functions | |
void | pcl::NetworkTransfer::OnDownloadDataAvailable (download_event_handler handler, Control &receiver) |
void | pcl::NetworkTransfer::OnTransferProgress (progress_event_handler handler, Control &receiver) |
void | pcl::NetworkTransfer::OnUploadDataRequested (upload_event_handler handler, Control &receiver) |
using pcl::NetworkTransfer::download_event_handler = bool (Control::*)( NetworkTransfer& sender, const void* buffer, fsize_type size ) |
Defines the prototype of a download event handler.
A download event is generated when a NetworkTransfer instance receives data from a remote location, which is ready to be processed by the calling process.
sender | The object that sends a download event. |
buffer | The starting address of a contiguous block of data that has been downloaded. The handler function must not modify these data in any way. |
size | The length in bytes of the buffer data block. |
The handler returns true to continue the download operation. If it returns false, the operation will be aborted.
Definition at line 494 of file NetworkTransfer.h.
using pcl::NetworkTransfer::progress_event_handler = bool (Control::*)( NetworkTransfer& sender, fsize_type downloadTotal, fsize_type downloadCurrent, fsize_type uploadTotal, fsize_type uploadCurrent ) |
Defines the prototype of a progress event handler.
A NetworkTransfer instance generates progress events at regular intervals during an active data transfer operation. Handling these events can be useful to provide feedback to the user during long download or upload procedures.
sender | The object that sends a progress event. |
downloadTotal | Total download size in bytes. |
downloadCurrent | Size of currently downloaded data in bytes. |
uploadTotal | Total upload size in bytes. |
uploadCurrent | Size of currently uploaded data in bytes. |
The handler returns true to continue the ongoing operation. If it returns false, the operation will be aborted.
Definition at line 551 of file NetworkTransfer.h.
using pcl::NetworkTransfer::upload_event_handler = fsize_type (Control::*)( NetworkTransfer& sender, void* buffer, fsize_type maxSize ) |
Defines the prototype of an upload event handler.
An upload event is generated when a NetworkTransfer instance is ready to send new data to a remote location, which must be provided by the calling process.
sender | The object that sends an upload event. |
buffer | The starting address of a contiguous memory block where the data to be uploaded must be copied by the handler function. |
maxSize | The maximum length in bytes of the buffer data block. The handler function must not store more bytes than the value passed in this argument. |
The handler returns an integer value, which will be interpreted as follows:
Definition at line 526 of file NetworkTransfer.h.
void pcl::NetworkTransfer::OnDownloadDataAvailable | ( | download_event_handler | handler, |
Control & | receiver | ||
) |
Sets the handler for download data available events generated by this NetworkTransfer object. These events are generated when the object receives data from a remote location, which is ready to be processed.
handler | The event handler. Must be a member function of the receiver object's class. |
receiver | The control that will receive events from this object. |
void pcl::NetworkTransfer::OnTransferProgress | ( | progress_event_handler | handler, |
Control & | receiver | ||
) |
Sets the handler for transfer progress events generated by this NetworkTransfer object. These events are generated at regular intervals during an active data transfer operation.
handler | The event handler. Must be a member function of the receiver object's class. |
receiver | The control that will receive events from this object. |
void pcl::NetworkTransfer::OnUploadDataRequested | ( | upload_event_handler | handler, |
Control & | receiver | ||
) |
Sets the handler for upload data requested events generated by this NetworkTransfer object. These events are generated when the object is ready to send new data to a remote location.
handler | The event handler. Must be a member function of the receiver object's class. |
receiver | The control that will receive events from this object. |