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

KDEUI

kwidgetjobtracker.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2000 Matej Koss <koss@miesto.sk>
00003     Copyright (C) 2007 Kevin Ottens <ervin@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License version 2 as published by the Free Software Foundation.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 
00019 */
00020 
00021 #ifndef KWIDGETJOBTRACKER_H
00022 #define KWIDGETJOBTRACKER_H
00023 
00024 #include <kabstractwidgetjobtracker.h>
00025 
00030 class KDEUI_EXPORT KWidgetJobTracker : public KAbstractWidgetJobTracker
00031 {
00032     Q_OBJECT
00033 
00034 public:
00040     KWidgetJobTracker(QWidget *parent = 0);
00041 
00045     virtual ~KWidgetJobTracker();
00046 
00053     virtual QWidget *widget(KJob *job);
00054 
00055 // KDE5: move this two virtual methods to be placed correctly (ereslibre)
00056 public Q_SLOTS:
00062     virtual void registerJob(KJob *job);
00063 
00069     virtual void unregisterJob(KJob *job);
00070 
00071 public:
00072     bool keepOpen(KJob *job) const;
00073 
00074 protected Q_SLOTS:
00078     virtual void infoMessage(KJob *job, const QString &plain, const QString &rich);
00079     virtual void description(KJob *job, const QString &title,
00080                              const QPair<QString, QString> &field1,
00081                              const QPair<QString, QString> &field2);
00082     virtual void totalAmount(KJob *job, KJob::Unit unit, qulonglong amount);
00083     virtual void processedAmount(KJob *job, KJob::Unit unit, qulonglong amount);
00084     virtual void percent(KJob *job, unsigned long percent);
00085     virtual void speed(KJob *job, unsigned long value);
00086     virtual void slotClean(KJob *job);
00087     virtual void suspended(KJob *job);
00088     virtual void resumed(KJob *job);
00089 
00090     //TODO: Misses canResume()
00091 
00092 private:
00093     class Private;
00094     Private *const d;
00095 
00096     Q_PRIVATE_SLOT(d, void _k_slotShowProgressWidget())
00097 };
00098 
00099 #endif

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