kget
#include <jobqueue.h>
Definition at line 32 of file jobqueue.h.
Enumerator |
---|
Running |
|
Stopped |
|
Definition at line 36 of file jobqueue.h.
void JobQueue::append |
( |
Job * |
job | ) |
|
|
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.
void JobQueue::append |
( |
const QList< Job * > & |
jobs | ) |
|
|
protected |
appends jobs to the current queue
- Parameters
-
jobs | to append to the current queue |
Definition at line 84 of file jobqueue.cpp.
iterator JobQueue::begin |
( |
| ) |
|
|
inline |
- Returns
- the begin of the job's list
Definition at line 57 of file jobqueue.h.
iterator JobQueue::end |
( |
| ) |
|
|
inline |
- Returns
- the end of the job's list
Definition at line 62 of file jobqueue.h.
int JobQueue::indexOf |
( |
Job * |
job | ) |
const |
|
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.
void JobQueue::insert |
( |
Job * |
job, |
|
|
Job * |
after |
|
) |
| |
|
protected |
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.
- 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.
void JobQueue::move |
( |
Job * |
job, |
|
|
Job * |
after |
|
) |
| |
|
protected |
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.
Job* JobQueue::operator[] |
( |
int |
i | ) |
const |
|
inline |
- Returns
- the Job in the queue at the given index i
Definition at line 85 of file jobqueue.h.
void JobQueue::prepend |
( |
Job * |
job | ) |
|
|
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.
void JobQueue::remove |
( |
Job * |
job | ) |
|
|
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.
void JobQueue::remove |
( |
const QList< Job * > |
jobs | ) |
|
|
protected |
removes jobs from the current queue
- Parameters
-
jobs | The jobs to remove from the current queue |
Definition at line 114 of file jobqueue.cpp.
const QList< Job * > JobQueue::runningJobs |
( |
| ) |
|
- Returns
- a list with the running Jobs
Definition at line 29 of file jobqueue.cpp.
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 |
void JobQueue::setStatus |
( |
Status |
queueStatus | ) |
|
|
virtual |
int JobQueue::size |
( |
| ) |
const |
|
inline |
- Returns
- the number of jobs in the queue
Definition at line 72 of file jobqueue.h.
Status JobQueue::status |
( |
| ) |
const |
|
inline |
- Returns
- the jobQueue status
Definition at line 52 of file jobqueue.h.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.