Pages
API Documentation
On this page

KIO::OpenWith Class

Core class for open with style dialog handling. More...

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

List of all members, including inherited members

Static Public Members

Detailed Description

This only implements core functionality. For an actual open with implementation see KOpenWithDialog. For a way to trigger open with dialogs see OpenUrlJob and OpenWithHandlerInterface.

Member Function Documentation

[static] KIO::OpenWith::AcceptResult OpenWith::accept(KService::Ptr &service, const QString &typedExec, bool remember, const QString &mimeType, bool openInTerminal, bool lingerTerminal, bool saveNewApps)

Accept an openwith request with the provided arguments as context. This function may have side effects to do with accepting, such as setting the default application for the mimetype if remember is true.

Returns an AcceptResult

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