Pages
API Documentation
On this page

KIO::MimetypeJob Class

Network transparent access to files and data. More...

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

List of all members, including inherited members

Detailed Description

A MimetypeJob is a TransferJob that allows you to get the MIME type of a URL. Don't create directly, but use KIO::mimetype() instead.

See also KIO::mimetype()

KIO::MimetypeJob *mimetype(const QUrl &url, KIO::JobFlags flags = DefaultFlags)

Find MIME type for one file or directory.

If you are going to download the file right after determining its MIME type, then don't use this, prefer using a KIO::get() job instead. See the note about putting the job on hold once the MIME type is determined.

url the URL of the file

flags Can be HideProgressInfo here

Returns the job handling the operation.

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