133Q_DECLARE_INTERFACE (
IDownload,
"org.Deviant.LeechCraft.IDownload/1.0")
Common interface for all the downloaders.
virtual QFuture< Result > AddJob(LC::Entity entity)=0
Adds the job with given parameters.
virtual ~IDownload()
Virtual destructor.
virtual qint64 GetUploadSpeed() const =0
Returns upload speed.
virtual EntityTestHandleResult CouldDownload(const LC::Entity &entity) const =0
Returns whether plugin can handle given entity.
virtual qint64 GetDownloadSpeed() const =0
Returns download speed.
auto operator==(const T &left, const T &right)
The result of testing whether an entity could be handled by a plugin.
enum IDownload::Error::Type Type_
A message used for inter-plugin communication.
Q_DECLARE_METATYPE(QVariantList *)