KDECore
Go to the documentation of this file.
25 class KJobUiDelegate::Private
29 : q(delegate),
job( 0 ),
30 autoErrorHandling( false ),
31 autoWarningHandling( true ) { }
36 bool autoErrorHandling : 1;
37 bool autoWarningHandling : 1;
44 :
QObject(), d(new Private(this))
54 bool KJobUiDelegate::setJob(
KJob *job )
78 d->autoErrorHandling = enable;
83 return d->autoErrorHandling;
88 d->autoWarningHandling = enable;
93 return d->autoWarningHandling;
104 void KJobUiDelegate::connectJob(
KJob *job)
106 connect(job, SIGNAL(result(
KJob*)),
107 this, SLOT(_k_result(
KJob*)));
113 void KJobUiDelegate::Private::_k_result(
KJob *job2)
116 if ( job->error() && autoErrorHandling )
117 q->showErrorMessage();
120 #include "kjobuidelegate.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:23:53 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.