# class KJobUiDelegate

###

Module | kdecore
Namespace |
Class | KJobUiDelegate
Inherits | QObject

The base class for all KJob UI delegate.

An UI delegate is responsible for tracking the progress and the events of a job and provides a UI for them (a dialog with a progress bar, text on the standard output, an error message box etc.).

See also KJob

### methods

- KJobUiDelegate ( )

  returns ctor

  Constructs a new KJobUiDelegate.

- isAutoErrorHandlingEnabled ( )

  returns bool

  Returns whether automatic error handling is enabled or disabled. See also setAutoErrorHandlingEnabled . Returns true if automatic error handling is enabled

  See also setAutoErrorHandlingEnabled()

- isAutoWarningHandlingEnabled ( )

  returns bool

  Returns whether automatic warning handling is enabled or disabled. See also setAutoWarningHandlingEnabled . Returns true if automatic warning handling is enabled

  See also setAutoWarningHandlingEnabled()

- job ( )

  returns KJob

  Retrieves the current job this UI delegate is attached to.

  Returns current job this UI delegate is attached to, or 0 if this UI delegate is not tracking any job

- setAutoErrorHandlingEnabled (enable)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  enable | bool |

  Enable or disable the automatic error handling. When automatic error handling is enabled and an error occurs, then showErrorDialog() is called, right before the emission of the result signal.

  The default is false.

  See also isAutoErrorHandlingEnabled , showErrorDialog

  enable - enable or disable automatic error handling

  See also isAutoErrorHandlingEnabled()

- setAutoWarningHandlingEnabled (enable)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  enable | bool |

  Enable or disable the automatic warning handling. When automatic warning handling is enabled and an error occurs, then a message box is displayed with the warning message

  The default is true.

  See also isAutoWarningHandlingEnabled , showErrorDialog

  enable - enable or disable automatic warning handling

  See also isAutoWarningHandlingEnabled()

- showErrorMessage ( )

  returns Nothing

  Display a dialog box to inform the user of the error given by this job. Only call if error is not 0, and only in the slot connected to result.

- slotWarning (job, plain, rich)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  job | KJob |
  plain | QString |
  rich | QString |