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 96 of file itransfermanager.h.
◆ ~ITransferJob()
virtual LC::Azoth::ITransferJob::~ITransferJob |
( |
| ) |
|
|
inlinevirtual |
◆ Abort()
virtual void LC::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.
◆ Accept()
virtual void LC::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. |
◆ errorAppeared()
virtual void LC::Azoth::ITransferJob::errorAppeared |
( |
TransferError |
error, |
|
|
const QString & |
msg |
|
) |
| |
|
protectedpure 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. |
◆ GetComment()
virtual QString LC::Azoth::ITransferJob::GetComment |
( |
| ) |
const |
|
pure virtual |
Returns the human-readable comment.
- Returns
- The text describing this transfer job.
◆ GetDirection()
Returns the direction of the transfer.
- Returns
- The direction of the transfer.
◆ GetName()
virtual QString LC::Azoth::ITransferJob::GetName |
( |
| ) |
const |
|
pure virtual |
Returns the name of the file.
- Returns
- The name of the file.
◆ GetSize()
virtual qint64 LC::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.
◆ GetSourceID()
virtual QString LC::Azoth::ITransferJob::GetSourceID |
( |
| ) |
const |
|
pure virtual |
◆ stateChanged()
virtual void LC::Azoth::ITransferJob::stateChanged |
( |
TransferState |
state | ) |
|
|
protectedpure virtual |
Notifies about state changes.
- Note
- This function is expected to be a signal.
- Parameters
-
[out] | state | The new state of the transfer job. |
◆ transferProgress()
virtual void LC::Azoth::ITransferJob::transferProgress |
( |
qint64 |
done, |
|
|
qint64 |
total |
|
) |
| |
|
protectedpure 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: