1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2000 Matej Koss <koss@miesto.sk>
4 SPDX-FileCopyrightText: 2007 Kevin Ottens <ervin@kde.org>
5 SPDX-FileCopyrightText: 2007 Rafael Fernández López <ereslibre@kde.org>
6
7 SPDX-License-Identifier: LGPL-2.0-only
8*/
9
10#ifndef KABSTRACTWIDGETJOBTRACKER_P
11#define KABSTRACTWIDGETJOBTRACKER_P
12
13#include "kabstractwidgetjobtracker.h"
14
15class KAbstractWidgetJobTrackerPrivate
16{
17 Q_DECLARE_PUBLIC(KAbstractWidgetJobTracker)
18public:
19 KAbstractWidgetJobTrackerPrivate(KAbstractWidgetJobTracker *qq)
20 : q_ptr(qq)
21 {
22 }
23
24 virtual ~KAbstractWidgetJobTrackerPrivate()
25 {
26 }
27
28 KAbstractWidgetJobTracker *const q_ptr;
29
30 //### KDE 5: make this methods virtual on KAbstractWidgetJobTracker and get rid out of this
31 // workaround. (ereslibre)
32 virtual void setStopOnClose(KJob *job, bool stopOnClose)
33 {
34 Q_UNUSED(job);
35 Q_UNUSED(stopOnClose);
36 }
37
38 virtual bool stopOnClose(KJob *job) const
39 {
40 Q_UNUSED(job);
41 return true;
42 }
43
44 virtual void setAutoDelete(KJob *job, bool autoDelete)
45 {
46 Q_UNUSED(job);
47 Q_UNUSED(autoDelete);
48 }
49
50 virtual bool autoDelete(KJob *job) const
51 {
52 Q_UNUSED(job);
53 return true;
54 }
55};
56
57#endif // KABSTRACTWIDGETJOBTRACKER_P
58

source code of kjobwidgets/src/kabstractwidgetjobtracker_p.h