• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

Public Types | Public Member Functions | Protected Member Functions | List of all members
JobQueue Class Reference

#include <jobqueue.h>

Inheritance diagram for JobQueue:
Inheritance graph
[legend]

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
 

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 ()
 

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.

JobQueue::~JobQueue ( )
virtual

Definition at line 25 of file jobqueue.cpp.

Member Function Documentation

void JobQueue::append ( Job *  job)
protected

appends a job to the current queue

Parameters
jobThe 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
jobsto 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
jobThe 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
jobThe job to add in the current queue
afterThe job after which to add the job

Definition at line 98 of file jobqueue.cpp.

Job* JobQueue::last ( )
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.

void JobQueue::move ( Job *  job,
Job *  after 
)
protected

Moves a job in the queue.

Both the given jobs must belong to this queue

Parameters
jobThe job to move
positionThe 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
jobThe 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
jobThe 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
jobsThe 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.

Scheduler* JobQueue::scheduler ( )
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
nThe maximum number of jobs
void JobQueue::setStatus ( Status  queueStatus)
virtual

Sets the JobQueue status.

Parameters
queueStatusthe new JobQueue status

Reimplemented in TransferGroup.

Definition at line 44 of file jobqueue.cpp.

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:
  • jobqueue.h
  • jobqueue.cpp
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.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal