KIO::JobUiDelegate Class
productname. More...
- Header:
#include <KIO/JobUiDelegate> - CMake:
find_package(KF6 REQUIRED COMPONENTS KIO)
target_link_libraries(mytarget PRIVATE KF6::KIOWidgets) - Inherits: KDialogJobUiDelegate and KIO::JobUiDelegateExtension
List of all members, including inherited members
Public Functions
- KIO::ClipboardUpdater *createClipboardUpdater(KIO::Job *job, KIO::JobUiDelegateExtension::ClipboardUpdaterMode mode)
- void setWindow(QWidget *window)
- void updateUrlInClipboard(const QUrl &src, const QUrl &dest)
Static Public Members
Protected Functions
Detailed Description
A UI delegate tuned to be used with KIO Jobs.
Member Function Documentation
[explicit protected] JobUiDelegate::JobUiDelegate(KJobUiDelegate::Flags flags = AutoHandlingDisabled, QWidget *window = nullptr, const QList<QObject *> &ifaces = {})
Constructs a new KIO Job UI delegate.
flags allows to enable automatic error/warning handling
window the window associated with this delegate, see setWindow.
ifaces Interface instances such as OpenWithHandlerInterface to replace the default interfaces
[override virtual] KIO::ClipboardUpdater *JobUiDelegate::createClipboardUpdater(KIO::Job *job, KIO::JobUiDelegateExtension::ClipboardUpdaterMode mode)
Reimplements: JobUiDelegateExtension::createClipboardUpdater(KIO::Job *job, KIO::JobUiDelegateExtension::ClipboardUpdaterMode mode).
Creates a clipboard updater
[override virtual] void JobUiDelegate::setWindow(QWidget *window)
Reimplements: KDialogJobUiDelegate::setWindow(QWidget *window).
Associate this job with a window given by window.
window the window to associate to
See also window()
[static] void JobUiDelegate::unregisterWindow(QWidget *window)
Unregister the given window from kded. This is normally done automatically when the window is destroyed.
This method is useful for instance when keeping a hidden window around to make it faster to reuse later.
[override virtual] void JobUiDelegate::updateUrlInClipboard(const QUrl &src, const QUrl &dest)
Reimplements: JobUiDelegateExtension::updateUrlInClipboard(const QUrl &src, const QUrl &dest).
Update URL in clipboard, if present