kget
#include <jobqueue.h>

Public Types | |
| enum | Status { Running, Stopped } |
Public Member Functions | |
| JobQueue (Scheduler *parent) | |
| virtual | ~JobQueue () |
| iterator | begin () |
| iterator | end () |
| int | indexOf (Job *job) const |
| Job * | last () |
| int | maxSimultaneousJobs () const |
| Job * | operator[] (int i) const |
| const QList< Job * > | runningJobs () |
| void | setMaxSimultaneousJobs (int n) |
| virtual void | setStatus (Status queueStatus) |
| int | size () const |
| Status | status () const |
Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| virtual | ~QObject () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
Protected Member Functions | |
| void | append (Job *job) |
| void | append (const QList< Job * > &jobs) |
| void | insert (Job *job, Job *after) |
| void | move (Job *job, Job *after) |
| void | prepend (Job *job) |
| void | remove (Job *job) |
| void | remove (const QList< Job * > jobs) |
| Scheduler * | scheduler () |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
| objectName | |
Detailed Description
Definition at line 32 of file jobqueue.h.
Member Enumeration Documentation
| enum JobQueue::Status |
| Enumerator | |
|---|---|
| Running | |
| Stopped | |
Definition at line 36 of file jobqueue.h.
Constructor & Destructor Documentation
| JobQueue::JobQueue | ( | Scheduler * | parent | ) |
Definition at line 17 of file jobqueue.cpp.
|
virtual |
Definition at line 25 of file jobqueue.cpp.
Member Function Documentation
|
protected |
appends a job to the current queue
- Parameters
-
job The job to append to the current queue
Definition at line 77 of file jobqueue.cpp.
appends jobs to the current queue
- Parameters
-
jobs to append to the current queue
Definition at line 84 of file jobqueue.cpp.
|
inline |
- Returns
- the begin of the job's list
Definition at line 57 of file jobqueue.h.
|
inline |
- Returns
- the end of the job's list
Definition at line 62 of file jobqueue.h.
|
inline |
- Parameters
-
job The job for which we want to find the index
- Returns
- the job index for the given job. If the given job can't be found, it returns -1
Definition at line 80 of file jobqueue.h.
inserts a job to the current queue after the given job
- Parameters
-
job The job to add in the current queue after The job after which to add the job
Definition at line 98 of file jobqueue.cpp.
|
inline |
- Returns
- the last job in the job's list
Definition at line 67 of file jobqueue.h.
| int JobQueue::maxSimultaneousJobs | ( | ) | const |
- Returns
- the maximum number of jobs the scheduler should ever execute simultaneously (in this queue).
Definition at line 71 of file jobqueue.cpp.
Moves a job in the queue.
Both the given jobs must belong to this queue
- Parameters
-
job The job to move position The job after which we have to move the given job
Definition at line 123 of file jobqueue.cpp.
|
inline |
- Returns
- the Job in the queue at the given index i
Definition at line 85 of file jobqueue.h.
|
protected |
prepends a job to the current queue
- Parameters
-
job The job to prepend to the current queue
Definition at line 91 of file jobqueue.cpp.
|
protected |
removes a job from the current queue
- Parameters
-
job The job to remove from the current queue
Definition at line 107 of file jobqueue.cpp.
removes jobs from the current queue
- Parameters
-
jobs The jobs to remove from the current queue
Definition at line 114 of file jobqueue.cpp.
- Returns
- a list with the running Jobs
Definition at line 29 of file jobqueue.cpp.
|
inlineprotected |
Definition at line 159 of file jobqueue.h.
| void JobQueue::setMaxSimultaneousJobs | ( | int | n | ) |
FIXME not implemented Sets the maximum number of jobs belonging to this queue that should executed simultaneously by the scheduler.
- Parameters
-
n The maximum number of jobs
|
virtual |
Sets the JobQueue status.
- Parameters
-
queueStatus the new JobQueue status
Reimplemented in TransferGroup.
Definition at line 44 of file jobqueue.cpp.
|
inline |
- Returns
- the number of jobs in the queue
Definition at line 72 of file jobqueue.h.
|
inline |
- Returns
- the jobQueue status
Definition at line 52 of file jobqueue.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from