#include <dcc_download.h>
Attributes | |
| enum | DCCStatus { connecting, downloading, connection_lost, finished } |
| int | get_bytes_transfered () |
| Returns the number of bytes transfered so far. | |
| int | get_total_size () |
| Returns the total size of file. | |
| DCCStatus | get_status () |
| Returns the current status of the download. | |
| CL_Signal_v1< const CL_String & > & | sig_connection_lost () |
| sig_connection_lost(error_message) | |
| CL_Signal_v0 & | sig_download_complete () |
| sig_download_complete() | |
Public Member Functions | |
Construction | |
| CL_DCCDownload () | |
| Constructs a new DCC download session. | |
| CL_DCCDownload (const CL_DCCDownload ©) | |
| Constructs a DCCDownload. | |
| CL_DCCDownload (const CL_String &server, const CL_String &port, const CL_String &filename, int total_size, CL_VirtualDirectory directory=CL_VirtualDirectory()) | |
| virtual | ~CL_DCCDownload () |
Operations | |
| CL_DCCDownload & | operator= (const CL_DCCDownload ©) |
| Copy assignment operator. | |
| void | reconnect () |
| Attemp to reconnect and resume download. | |
This class connects to an IRC client listening for an incoming DCC connection and then downloads the file offered. Should be used in response to a DCC SEND CTCP command.
|
|
|
|
|
Constructs a new DCC download session.
|
|
|
Constructs a DCCDownload.
|
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
Returns the number of bytes transfered so far.
|
|
|
Returns the current status of the download.
|
|
|
Returns the total size of file. If the total size is unknown, it returns 0. |
|
|
Copy assignment operator.
|
|
|
Attemp to reconnect and resume download.
|
|
|
sig_connection_lost(error_message)
|
|
|
|
1.4.6