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
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