14class QAbstractItemModel;
273Q_DECLARE_INTERFACE (
IJobHolder,
"org.Deviant.LeechCraft.IJobHolder/1.0")
Interface for plugins holding jobs or persistent notifications.
virtual ~IJobHolder()
Virtual destructor.
virtual QAbstractItemModel * GetRepresentation() const =0
Returns the item representation model.
virtual IJobHolderRepresentationHandler_ptr CreateRepresentationHandler()
std::shared_ptr< IJobHolderRepresentationHandler > IJobHolderRepresentationHandler_ptr
JobHolderColumn
Describes the columns in a job holder model.
@ JobName
The column with the name of the task, like a torrent name or an RSS feed name.
@ JobProgress
The column with the progress of the task, like the amount of data downloaded so far or last update.
@ JobStatus
The column with the status of the task, like the download status or the unread items count of an RSS ...
JobHolderRole
This enum contains roles that are used to query job states.
@ ProcessState
Describes the state of a process.
JobHolderRow
Describes the semantics of a row in a job holder model.
State of a single process represented in a IJobHolder model.
enum LC::ProcessStateInfo::State State_
ProcessStateInfo(qlonglong done, qlonglong total, TaskParameters params, State state)
Constructs the description with the given values and state.
qlonglong Done_
The amount of items already processed or downloaded.
State
Describes the state of the process.
@ Running
The process is running just fine.
@ Error
There was an error completing the process.
@ Paused
The process is paused.
ProcessStateInfo(qlonglong done, qlonglong total, TaskParameters params)
Constructs the description with the given values.
qlonglong Total_
The total amount of items to be processed or downloaded.
ProcessStateInfo()=default
Default-constructs a process description.
TaskParameters Params_
The flags of the task as it was originally added to the downloader, if relevant.
Q_DECLARE_METATYPE(QVariantList *)