• 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
kabstractwidgetjobtracker.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) 2008 Rafael Fernández López <ereslibre@kde.org>
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 KABSTRACTWIDGETJOBTRACKER_H
23 #define KABSTRACTWIDGETJOBTRACKER_H
24 
25 #include <kdeui_export.h>
26 #include <kjobtrackerinterface.h>
27 
28 class KJob;
29 class QWidget;
30 
34 class KDEUI_EXPORT KAbstractWidgetJobTracker : public KJobTrackerInterface
35 {
36  Q_OBJECT
37 
38 public:
44  KAbstractWidgetJobTracker(QWidget *parent = 0);
45 
49  virtual ~KAbstractWidgetJobTracker();
50 
51 // KDE5: move this two virtual methods to be placed correctly (ereslibre)
52 public Q_SLOTS:
60  virtual void registerJob(KJob *job);
61 
67  virtual void unregisterJob(KJob *job);
68 
69 public:
76  virtual QWidget *widget(KJob *job) = 0;
77 
86  void setStopOnClose(KJob *job, bool stopOnClose);
87 
95  bool stopOnClose(KJob *job) const;
96 
109  void setAutoDelete(KJob *job, bool autoDelete);
110 
119  bool autoDelete(KJob *job) const;
120 
121 protected Q_SLOTS:
128  virtual void finished(KJob *job);
129 
136  virtual void slotStop(KJob *job);
137 
144  virtual void slotSuspend(KJob *job);
145 
152  virtual void slotResume(KJob *job);
153 
160  virtual void slotClean(KJob *job);
161 
162 Q_SIGNALS:
168  void stopped(KJob *job);
169 
175  void suspend(KJob *job);
176 
182  void resume(KJob *job);
183 
184 protected:
185  class Private;
186  Private *const d;
187 };
188 
189 #endif
kjobtrackerinterface.h
QWidget
KAbstractWidgetJobTracker
The base class for widget based job trackers.
Definition: kabstractwidgetjobtracker.h:34
KJobTrackerInterface::finished
virtual void finished(KJob *job)
KJobTrackerInterface
KAbstractWidgetJobTracker::d
Private *const d
Definition: kabstractwidgetjobtracker.h:185
kdeui_export.h
KJobTrackerInterface::unregisterJob
virtual void unregisterJob(KJob *job)
KJobTrackerInterface::registerJob
virtual void registerJob(KJob *job)
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:13 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