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

KDEUI

kabstractwidgetjobtracker.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2000 Matej Koss <koss@miesto.sk>
00003     Copyright (C) 2007 Kevin Ottens <ervin@kde.org>
00004     Copyright (C) 2008 Rafael Fernández López <ereslibre@kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2 as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 
00020 */
00021 
00022 #ifndef KABSTRACTWIDGETJOBTRACKER_H
00023 #define KABSTRACTWIDGETJOBTRACKER_H
00024 
00025 #include <kdeui_export.h>
00026 #include <kjobtrackerinterface.h>
00027 
00028 class KJob;
00029 class QWidget;
00030 
00034 class KDEUI_EXPORT KAbstractWidgetJobTracker : public KJobTrackerInterface
00035 {
00036     Q_OBJECT
00037 
00038 public:
00044     KAbstractWidgetJobTracker(QWidget *parent = 0);
00045 
00049     virtual ~KAbstractWidgetJobTracker();
00050 
00051 // KDE5: move this two virtual methods to be placed correctly (ereslibre)
00052 public Q_SLOTS:
00060     virtual void registerJob(KJob *job);
00061 
00067     virtual void unregisterJob(KJob *job);
00068 
00069 public:
00076     virtual QWidget *widget(KJob *job) = 0;
00077 
00086     void setStopOnClose(KJob *job, bool stopOnClose);
00087 
00095     bool stopOnClose(KJob *job) const;
00096 
00109     void setAutoDelete(KJob *job, bool autoDelete);
00110 
00119     bool autoDelete(KJob *job) const;
00120 
00121 protected Q_SLOTS:
00128     virtual void finished(KJob *job);
00129 
00136     virtual void slotStop(KJob *job);
00137 
00144     virtual void slotSuspend(KJob *job);
00145 
00152     virtual void slotResume(KJob *job);
00153 
00160     virtual void slotClean(KJob *job);
00161 
00162 Q_SIGNALS:
00168     void stopped(KJob *job);
00169 
00175     void suspend(KJob *job);
00176 
00182     void resume(KJob *job);
00183 
00184 protected:
00185     class Private;
00186     Private *const d;
00187 };
00188 
00189 #endif

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal