KDEUI
kuiserverjobtracker.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 Copyright (C) 2007 Kevin Ottens <ervin@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 00018 */ 00019 00020 #ifndef KUISERVERJOBTRACKER_H 00021 #define KUISERVERJOBTRACKER_H 00022 00023 #include <kdeui_export.h> 00024 #include <kjobtrackerinterface.h> 00025 00026 class KJob; 00027 00031 class KDEUI_EXPORT KUiServerJobTracker : public KJobTrackerInterface 00032 { 00033 Q_OBJECT 00034 00035 public: 00041 KUiServerJobTracker(QObject *parent=0); 00042 00046 virtual ~KUiServerJobTracker(); 00047 00053 virtual void registerJob(KJob *job); 00054 00060 virtual void unregisterJob(KJob *job); 00061 00062 protected Q_SLOTS: 00066 virtual void finished(KJob *job); 00067 virtual void suspended(KJob *job); 00068 virtual void resumed(KJob *job); 00069 virtual void description(KJob *job, const QString &title, 00070 const QPair<QString, QString> &field1, 00071 const QPair<QString, QString> &field2); 00072 virtual void infoMessage(KJob *job, const QString &plain, const QString &rich); 00073 virtual void totalAmount(KJob *job, KJob::Unit unit, qulonglong amount); 00074 virtual void processedAmount(KJob *job, KJob::Unit unit, qulonglong amount); 00075 virtual void percent(KJob *job, unsigned long percent); 00076 virtual void speed(KJob *job, unsigned long value); 00077 00078 private: 00079 class Private; 00080 Private *const d; 00081 00082 Q_PRIVATE_SLOT(d, void _k_killJob()) 00083 }; 00084 00085 #endif
KDE 4.6 API Reference