File indexing completed on 2024-12-01 09:54:12
0001 /* 0002 This file is part of the KDE project 0003 SPDX-FileCopyrightText: 2000 Matej Koss <koss@miesto.sk> 0004 SPDX-FileCopyrightText: 2007 Kevin Ottens <ervin@kde.org> 0005 SPDX-FileCopyrightText: 2007 Rafael Fernández López <ereslibre@kde.org> 0006 0007 SPDX-License-Identifier: LGPL-2.0-only 0008 */ 0009 0010 #ifndef KABSTRACTWIDGETJOBTRACKER_P 0011 #define KABSTRACTWIDGETJOBTRACKER_P 0012 0013 #include "kabstractwidgetjobtracker.h" 0014 0015 class KAbstractWidgetJobTrackerPrivate 0016 { 0017 Q_DECLARE_PUBLIC(KAbstractWidgetJobTracker) 0018 public: 0019 KAbstractWidgetJobTrackerPrivate(KAbstractWidgetJobTracker *qq) 0020 : q_ptr(qq) 0021 { 0022 } 0023 0024 virtual ~KAbstractWidgetJobTrackerPrivate() 0025 { 0026 } 0027 0028 KAbstractWidgetJobTracker *const q_ptr; 0029 0030 //### KDE 5: make this methods virtual on KAbstractWidgetJobTracker and get rid out of this 0031 // workaround. (ereslibre) 0032 virtual void setStopOnClose(KJob *job, bool stopOnClose) 0033 { 0034 Q_UNUSED(job); 0035 Q_UNUSED(stopOnClose); 0036 } 0037 0038 virtual bool stopOnClose(KJob *job) const 0039 { 0040 Q_UNUSED(job); 0041 return true; 0042 } 0043 0044 virtual void setAutoDelete(KJob *job, bool autoDelete) 0045 { 0046 Q_UNUSED(job); 0047 Q_UNUSED(autoDelete); 0048 } 0049 0050 virtual bool autoDelete(KJob *job) const 0051 { 0052 Q_UNUSED(job); 0053 return true; 0054 } 0055 }; 0056 0057 #endif // KABSTRACTWIDGETJOBTRACKER_P