KIO::JobUiDelegate Class
Header: | #include <KIO/JobUiDelegate> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KIO) target_link_libraries(mytarget PRIVATE KF6::KIOWidgets) |
Inherits: | KDialogJobUiDelegate and KIO::JobUiDelegateExtension |
Reimplemented Public Functions
(deprecated in 6.15) virtual bool | askDeleteConfirmation(const QList<QUrl> &urls, KIO::JobUiDelegateExtension::DeletionType deletionType, KIO::JobUiDelegateExtension::ConfirmationType confirmationType) override |
virtual KIO::ClipboardUpdater * | createClipboardUpdater(KIO::Job *job, KIO::JobUiDelegateExtension::ClipboardUpdaterMode mode) override |
virtual void | setWindow(QWidget *window) override |
virtual void | updateUrlInClipboard(const QUrl &src, const QUrl &dest) override |
Static Public Members
void | unregisterWindow(QWidget *window) |
Protected Functions
JobUiDelegate(KJobUiDelegate::Flags flags = AutoHandlingDisabled, QWidget *window = nullptr, const QList<QObject *> &ifaces = {}) |
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