This interface must be implemented by objects representing file transfer jobs.
More...
#include "itransfermanager.h"
This interface must be implemented by objects representing file transfer jobs.
Definition at line 105 of file itransfermanager.h.
virtual LeechCraft::Azoth::ITransferJob::~ITransferJob |
( |
| ) |
|
|
inlinevirtual |
virtual void LeechCraft::Azoth::ITransferJob::Abort |
( |
| ) |
|
|
pure virtual |
Rejects or aborts a transfer.
This method is used to reject an incoming file transfer request or abort an already accepted one that's in progress.
virtual void LeechCraft::Azoth::ITransferJob::Accept |
( |
const QString & |
out | ) |
|
|
pure virtual |
Accepts an incoming transfer.
This method only makes sense in incoming file transfers. It is used to accept the transfer and write the file the path given by the out parameter.
- Parameters
-
[in] | out | The file path to save the incoming data to. |
virtual void LeechCraft::Azoth::ITransferJob::errorAppeared |
( |
TransferError |
error, |
|
|
const QString & |
msg |
|
) |
| |
|
pure virtual |
Notifies about error.
- Note
- This function is expected to be a signal.
- Parameters
-
[out] | error | The error condition. |
[out] | msg | The human-readable message describing the error. |
virtual QString LeechCraft::Azoth::ITransferJob::GetComment |
( |
| ) |
const |
|
pure virtual |
Returns the human-readable comment.
- Returns
- The text describing this transfer job.
Returns the direction of the transfer.
- Returns
- The direction of the transfer.
virtual QString LeechCraft::Azoth::ITransferJob::GetName |
( |
| ) |
const |
|
pure virtual |
Returns the name of the file.
- Returns
- The name of the file.
virtual qint64 LeechCraft::Azoth::ITransferJob::GetSize |
( |
| ) |
const |
|
pure virtual |
Returns the size of the file.
- Returns
- The size of the file, or -1 if size is not known.
virtual QString LeechCraft::Azoth::ITransferJob::GetSourceID |
( |
| ) |
const |
|
pure virtual |
virtual void LeechCraft::Azoth::ITransferJob::stateChanged |
( |
TransferState |
state | ) |
|
|
pure virtual |
Notifies about state changes.
- Note
- This function is expected to be a signal.
- Parameters
-
[out] | state | The new state of the transfer job. |
virtual void LeechCraft::Azoth::ITransferJob::transferProgress |
( |
qint64 |
done, |
|
|
qint64 |
total |
|
) |
| |
|
pure virtual |
Notifies about transfer progress.
- Note
- This function is expected to be a signal.
- Parameters
-
[out] | done | The amount of data already transferred. |
[out] | total | The total amount of data. |
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/leechcraft-0.6.0/src/plugins/azoth/interfaces/azoth/itransfermanager.h