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

KDECore

kjobuidelegate.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2000 Stephan Kulow <coolo@kde.org>
00003                        David Faure <faure@kde.org>
00004     Copyright (C) 2006 Kevin Ottens <ervin@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 as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KJOBUIDELEGATE_H
00023 #define KJOBUIDELEGATE_H
00024 
00025 #include <kdecore_export.h>
00026 #include <QtCore/QObject>
00027 
00028 class KJob;
00029 
00040 class KDECORE_EXPORT KJobUiDelegate : public QObject
00041 {
00042     Q_OBJECT
00043 
00044 public:
00048     KJobUiDelegate();
00049 
00053     virtual ~KJobUiDelegate();
00054 
00055 private:
00061     bool setJob( KJob *job );
00062 
00063 protected:
00070     KJob *job();
00071 
00072     friend class KJob;
00073 
00074 public:
00081     virtual void showErrorMessage();
00082 
00095     void setAutoErrorHandlingEnabled( bool enable );
00096 
00103     bool isAutoErrorHandlingEnabled() const;
00104 
00117     void setAutoWarningHandlingEnabled( bool enable );
00118 
00125     bool isAutoWarningHandlingEnabled() const;
00126 
00127 protected Q_SLOTS:
00128     virtual void slotWarning(KJob *job, const QString &plain, const QString &rich);
00129 
00130 private:
00131     void connectJob(KJob *job);
00132 
00133     Q_PRIVATE_SLOT(d, void _k_result(KJob*))
00134 
00135     class Private;
00136     Private * const d;
00137 };
00138 
00139 #endif // KJOBUIDELEGATE_H

KDECore

Skip menu "KDECore"
  • 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
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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