KDECore
kjobuidelegate.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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
00039 class KDECORE_EXPORT KJobUiDelegate : public QObject
00040 {
00041 Q_OBJECT
00042
00043 public:
00047 KJobUiDelegate();
00048
00052 virtual ~KJobUiDelegate();
00053
00054 private:
00060 bool setJob( KJob *job );
00061
00062 protected:
00069 KJob *job();
00070
00071 friend class KJob;
00072
00073 public:
00080 virtual void showErrorMessage();
00081
00094 void setAutoErrorHandlingEnabled( bool enable );
00095
00102 bool isAutoErrorHandlingEnabled() const;
00103
00116 void setAutoWarningHandlingEnabled( bool enable );
00117
00124 bool isAutoWarningHandlingEnabled() const;
00125
00126 protected Q_SLOTS:
00127 virtual void slotWarning(KJob *job, const QString &plain, const QString &rich);
00128
00129 private:
00130 void connectJob(KJob *job);
00131
00132 Q_PRIVATE_SLOT(d, void _k_result(KJob*))
00133
00134 class Private;
00135 Private * const d;
00136 };
00137
00138 #endif // KJOBUIDELEGATE_H