Pages
API Documentation
On this page

KIO::JobUiDelegateFactory Class

A factory for creating job ui delegates. More...

  • Header: #include <KIO/JobUiDelegateFactory>
  • CMake: find_package(KF6 REQUIRED COMPONENTS KIO)
    target_link_libraries(mytarget PRIVATE KF6::KIOCore)

List of all members, including inherited members

Public Functions

Protected Functions

Detailed Description

Every KIO job will get a delegate from this factory.

Member Function Documentation

[protected] JobUiDelegateFactory::JobUiDelegateFactory()

Constructor

[pure virtual] KJobUiDelegate *JobUiDelegateFactory::createDelegate() const

[pure virtual, since 6.0] KJobUiDelegate *JobUiDelegateFactory::createDelegate(KJobUiDelegate::Flags flags, QWidget *window) const

This function was introduced in Qt 6.0.

KJobUiDelegate *createDefaultJobUiDelegate()

Convenience method: use default factory, if there's one, to create a delegate and return it.

KJobUiDelegate *createDefaultJobUiDelegate(KJobUiDelegate::Flags flags, QWidget *window)

Convenience method: use default factory, if there's one, to create a delegate and return it.

[since 6.0] KIO::JobUiDelegateFactory *defaultJobUiDelegateFactory()

Returns the default job UI delegate factory to be used by all KIO jobs (in which HideProgressInfo is not set) Can return nullptr, if no kio GUI library is loaded.

This function was introduced in Qt 6.0.

See also setDefaultJobUiDelegateFactory()

template <typename T> T delegateExtension(KJob *job)

Returns the child of the job's uiDelegate() that implements the given extension, or nullptr if none was found (or if the job had no uiDelegate).

[since 6.0] void setDefaultJobUiDelegateFactory(KIO::JobUiDelegateFactory *factory)

Internal. Allows the KIO widgets library to register its widget-based job UI delegate factory automatically.

This function was introduced in Qt 6.0.

See also defaultJobUiDelegateFactory()

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.