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