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

KDEUI

  • 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
28class KJob;
29class QWidget;
30
34class KDEUI_EXPORT KAbstractWidgetJobTracker : public KJobTrackerInterface
35{
36 Q_OBJECT
37
38public:
44 KAbstractWidgetJobTracker(QWidget *parent = 0);
45
49 virtual ~KAbstractWidgetJobTracker();
50
51// KDE5: move this two virtual methods to be placed correctly (ereslibre)
52public Q_SLOTS:
60 virtual void registerJob(KJob *job);
61
67 virtual void unregisterJob(KJob *job);
68
69public:
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
121protected 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
162Q_SIGNALS:
168 void stopped(KJob *job);
169
175 void suspend(KJob *job);
176
182 void resume(KJob *job);
183
184protected:
185 class Private;
186 Private *const d;
187};
188
189#endif
KAbstractWidgetJobTracker
The base class for widget based job trackers.
Definition: kabstractwidgetjobtracker.h:35
KAbstractWidgetJobTracker::d
Private *const d
Definition: kabstractwidgetjobtracker.h:186
KAbstractWidgetJobTracker::resume
void resume(KJob *job)
Emitted when the user resumed the operation.
KAbstractWidgetJobTracker::stopped
void stopped(KJob *job)
Emitted when the user aborted the operation.
KAbstractWidgetJobTracker::suspend
void suspend(KJob *job)
Emitted when the user suspended the operation.
KAbstractWidgetJobTracker::widget
virtual QWidget * widget(KJob *job)=0
The widget associated to this tracker.
KJobTrackerInterface
KJob
QWidget
kdeui_export.h
kjobtrackerinterface.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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