• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KWidgetJobTracker Class Reference

#include <kwidgetjobtracker.h>

Inheritance diagram for KWidgetJobTracker:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class implements a job tracker with a widget suited for use as a progress dialog.

Definition at line 30 of file kwidgetjobtracker.h.


Public Slots

virtual void registerJob (KJob *job)
virtual void unregisterJob (KJob *job)

Public Member Functions

bool keepOpen (KJob *job) const
 KWidgetJobTracker (QWidget *parent=0)
virtual QWidget * widget (KJob *job)
virtual ~KWidgetJobTracker ()

Protected Slots

virtual void description (KJob *job, const QString &title, const QPair< QString, QString > &field1, const QPair< QString, QString > &field2)
virtual void infoMessage (KJob *job, const QString &plain, const QString &rich)
virtual void percent (KJob *job, unsigned long percent)
virtual void processedAmount (KJob *job, KJob::Unit unit, qulonglong amount)
virtual void resumed (KJob *job)
virtual void slotClean (KJob *job)
virtual void speed (KJob *job, unsigned long value)
virtual void suspended (KJob *job)
virtual void totalAmount (KJob *job, KJob::Unit unit, qulonglong amount)

Constructor & Destructor Documentation

KWidgetJobTracker::KWidgetJobTracker ( QWidget *  parent = 0  ) 

Creates a new KWidgetJobTracker.

Parameters:
parent the parent of this object and of the widget displaying the job progresses

Definition at line 63 of file kwidgetjobtracker.cpp.

KWidgetJobTracker::~KWidgetJobTracker (  )  [virtual]

Destroys a KWidgetJobTracker.

Definition at line 68 of file kwidgetjobtracker.cpp.


Member Function Documentation

void KWidgetJobTracker::description ( KJob *  job,
const QString &  title,
const QPair< QString, QString > &  field1,
const QPair< QString, QString > &  field2 
) [protected, virtual, slot]

Reimplemented from KJobTrackerInterface.

Definition at line 124 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::infoMessage ( KJob *  job,
const QString &  plain,
const QString &  rich 
) [protected, virtual, slot]

The following slots are inherited from KJobTrackerInterface.

Reimplemented from KJobTrackerInterface.

Definition at line 114 of file kwidgetjobtracker.cpp.

bool KWidgetJobTracker::keepOpen ( KJob *  job  )  const

Definition at line 104 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::percent ( KJob *  job,
unsigned long  percent 
) [protected, virtual, slot]

Reimplemented from KJobTrackerInterface.

Definition at line 156 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::processedAmount ( KJob *  job,
KJob::Unit  unit,
qulonglong  amount 
) [protected, virtual, slot]

Reimplemented from KJobTrackerInterface.

Definition at line 146 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::registerJob ( KJob *  job  )  [virtual, slot]

Register a new job in this tracker.

Parameters:
job the job to register

Reimplemented from KAbstractWidgetJobTracker.

Definition at line 78 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::resumed ( KJob *  job  )  [protected, virtual, slot]

Reimplemented from KJobTrackerInterface.

Definition at line 196 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::slotClean ( KJob *  job  )  [protected, virtual, slot]

This method is called when the widget should be cleaned (after job is finished).

redefine this for custom behavior.

Parameters:
job The job that is being cleaned

Reimplemented from KAbstractWidgetJobTracker.

Definition at line 176 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::speed ( KJob *  job,
unsigned long  value 
) [protected, virtual, slot]

Reimplemented from KJobTrackerInterface.

Definition at line 166 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::suspended ( KJob *  job  )  [protected, virtual, slot]

Reimplemented from KJobTrackerInterface.

Definition at line 186 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::totalAmount ( KJob *  job,
KJob::Unit  unit,
qulonglong  amount 
) [protected, virtual, slot]

Reimplemented from KJobTrackerInterface.

Definition at line 136 of file kwidgetjobtracker.cpp.

void KWidgetJobTracker::unregisterJob ( KJob *  job  )  [virtual, slot]

Unregister a job from this tracker.

Parameters:
job the job to unregister

Reimplemented from KAbstractWidgetJobTracker.

Definition at line 91 of file kwidgetjobtracker.cpp.

QWidget * KWidgetJobTracker::widget ( KJob *  job  )  [virtual]

The widget associated to this tracker.

Parameters:
job the job that is assigned the widget we want to get
Returns:
the widget displaying the job progresses

Implements KAbstractWidgetJobTracker.

Definition at line 73 of file kwidgetjobtracker.cpp.


The documentation for this class was generated from the following files:
  • kwidgetjobtracker.h
  • kwidgetjobtracker.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal