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

KDECore

  • sources
  • kde-4.12
  • kdelibs
  • kdecore
  • jobs
kjobtrackerinterface.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2007 Kevin Ottens <ervin@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 
18 */
19 
20 #ifndef KJOBTRACKERINTERFACE_H
21 #define KJOBTRACKERINTERFACE_H
22 
23 #include <kdecore_export.h>
24 #include <kjob.h>
25 
26 #include <QtCore/QObject>
27 #include <QtCore/QPair>
28 
32 class KDECORE_EXPORT KJobTrackerInterface : public QObject
33 {
34  Q_OBJECT
35 
36 public:
42  KJobTrackerInterface(QObject *parent=0);
43 
47  virtual ~KJobTrackerInterface();
48 
49 public Q_SLOTS:
55  virtual void registerJob(KJob *job);
56 
62  virtual void unregisterJob(KJob *job);
63 
64 protected Q_SLOTS:
71  virtual void finished(KJob *job);
72 
78  virtual void suspended(KJob *job);
79 
85  virtual void resumed(KJob *job);
86 
100  virtual void description(KJob *job, const QString &title,
101  const QPair<QString, QString> &field1,
102  const QPair<QString, QString> &field2);
103 
112  virtual void infoMessage(KJob *job, const QString &plain, const QString &rich);
113 
121  virtual void warning(KJob *job, const QString &plain, const QString &rich);
122 
132  virtual void totalAmount(KJob *job, KJob::Unit unit, qulonglong amount);
133 
143  virtual void processedAmount(KJob *job, KJob::Unit unit, qulonglong amount);
144 
152  virtual void percent(KJob *job, unsigned long percent);
153 
160  virtual void speed(KJob *job, unsigned long value);
161 
162 private:
163  class Private;
164  Private *const d;
165 };
166 
167 #endif
kdecore_export.h
QString
QObject
KJob::Unit
Unit
Definition: kjob.h:91
KJobTrackerInterface
The interface to implement to track the progresses of a job.
Definition: kjobtrackerinterface.h:32
QPair
kjob.h
KJob
The base class for all jobs.
Definition: kjob.h:84
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • 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