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

KDEUI

  • sources
  • kde-4.12
  • kdelibs
  • kdeui
  • jobs
kwidgetjobtracker.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2000 Matej Koss <koss@miesto.sk>
3  Copyright (C) 2007 Kevin Ottens <ervin@kde.org>
4  Copyright (C) 2009 Shaun Reich <shaun.reich@kdemail.net>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 
20 */
21 
22 #ifndef KWIDGETJOBTRACKER_H
23 #define KWIDGETJOBTRACKER_H
24 
25 #include <kabstractwidgetjobtracker.h>
26 
31 class KDEUI_EXPORT KWidgetJobTracker : public KAbstractWidgetJobTracker
32 {
33  Q_OBJECT
34 
35 public:
41  KWidgetJobTracker(QWidget *parent = 0);
42 
46  virtual ~KWidgetJobTracker();
47 
54  virtual QWidget *widget(KJob *job);
55 
56 // KDE5: move this two virtual methods to be placed correctly (ereslibre)
57 public Q_SLOTS:
63  virtual void registerJob(KJob *job);
64 
70  virtual void unregisterJob(KJob *job);
71 
72 public:
73  bool keepOpen(KJob *job) const;
74 
75 protected Q_SLOTS:
79  virtual void infoMessage(KJob *job, const QString &plain, const QString &rich);
80  virtual void description(KJob *job, const QString &title,
81  const QPair<QString, QString> &field1,
82  const QPair<QString, QString> &field2);
83  virtual void totalAmount(KJob *job, KJob::Unit unit, qulonglong amount);
84  virtual void processedAmount(KJob *job, KJob::Unit unit, qulonglong amount);
85  virtual void percent(KJob *job, unsigned long percent);
86  virtual void speed(KJob *job, unsigned long value);
87  virtual void slotClean(KJob *job);
88  virtual void suspended(KJob *job);
89  virtual void resumed(KJob *job);
90 
91  //TODO: Misses canResume()
92 
93 private:
94  class Private;
95  Private *const d;
96 
97  Q_PRIVATE_SLOT(d, void _k_showProgressWidget())
98 };
99 
100 #endif
KJobTrackerInterface::resumed
virtual void resumed(KJob *job)
QWidget
KAbstractWidgetJobTracker
The base class for widget based job trackers.
Definition: kabstractwidgetjobtracker.h:34
KJobTrackerInterface::suspended
virtual void suspended(KJob *job)
KJobTrackerInterface::totalAmount
virtual void totalAmount(KJob *job, KJob::Unit unit, qulonglong amount)
KAbstractWidgetJobTracker::slotClean
virtual void slotClean(KJob *job)
This method is called when the widget should be cleaned (after job is finished).
Definition: kabstractwidgetjobtracker.cpp:102
KAbstractWidgetJobTracker::widget
virtual QWidget * widget(KJob *job)=0
The widget associated to this tracker.
QString
KJobTrackerInterface::description
virtual void description(KJob *job, const QString &title, const QPair< QString, QString > &field1, const QPair< QString, QString > &field2)
KJobTrackerInterface::speed
virtual void speed(KJob *job, unsigned long value)
KWidgetJobTracker
This class implements a job tracker with a widget suited for use as a progress dialog.
Definition: kwidgetjobtracker.h:31
kabstractwidgetjobtracker.h
KAbstractWidgetJobTracker::registerJob
virtual void registerJob(KJob *job)
Register a new job in this tracker.
Definition: kabstractwidgetjobtracker.cpp:43
KAbstractWidgetJobTracker::d
Private *const d
Definition: kabstractwidgetjobtracker.h:185
KJobTrackerInterface::infoMessage
virtual void infoMessage(KJob *job, const QString &plain, const QString &rich)
KJobTrackerInterface::percent
virtual void percent(KJob *job, unsigned long percent)
QPair
KJobTrackerInterface::processedAmount
virtual void processedAmount(KJob *job, KJob::Unit unit, qulonglong amount)
KAbstractWidgetJobTracker::unregisterJob
virtual void unregisterJob(KJob *job)
Unregister a job from this tracker.
Definition: kabstractwidgetjobtracker.cpp:48
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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