 |
LeechCraft Azoth
0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
|
Go to the documentation of this file.
9 #ifndef PLUGINS_AZOTH_INTERFACES_ITRANSFERMANAGER_H
10 #define PLUGINS_AZOTH_INTERFACES_ITRANSFERMANAGER_H
103 virtual QString
GetName ()
const = 0;
109 virtual qint64
GetSize ()
const = 0;
131 virtual void Accept (
const QString& out) = 0;
138 virtual void Abort () = 0;
170 class ITransferManager
214 virtual QObject*
SendFile (
const QString&
id,
215 const QString& variant,
217 const QString& comment) = 0;
239 "org.Deviant.LeechCraft.Azoth.ITransferJob/1.0")
240 Q_DECLARE_INTERFACE (
LC::Azoth::ITransferManager,
241 "org.Deviant.LeechCraft.Azoth.ITransferManager/1.0")
virtual QString GetName() const =0
Returns the name of the file.
virtual void errorAppeared(TransferError error, const QString &msg)=0
Notifies about error.
virtual bool IsAvailable() const =0
Returns whether transfer manager is available.
virtual QString GetComment() const =0
Returns the human-readable comment.
virtual void Abort()=0
Rejects or aborts a transfer.
TransferDirection
Represents the direction of the transfer.
virtual QString GetSourceID() const =0
Returns the ID of the other party.
virtual void transferProgress(qint64 done, qint64 total)=0
Notifies about transfer progress.
virtual void fileOffered(QObject *job)=0
Notifies about incoming transfer request.
virtual qint64 GetSize() const =0
Returns the size of the file.
virtual void stateChanged(TransferState state)=0
Notifies about state changes.
virtual void Accept(const QString &out)=0
Accepts an incoming transfer.
TransferError
Represents the error condition of the transfer.
TransferState
Represents the state of the file transfer job.
This interface must be implemented by objects representing file transfer jobs.
virtual TransferDirection GetDirection() const =0
Returns the direction of the transfer.
virtual ~ITransferManager()
virtual QObject * SendFile(const QString &id, const QString &variant, const QString &name, const QString &comment)=0
Requests a file transfer with the remote party.