KIO::MimetypeJob Class
class KIO::MimetypeJobHeader: | #include <KIO/MimetypeJob> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KIO) target_link_libraries(mytarget PRIVATE KF6::KIOCore) |
Inherits: | KIO::TransferJob |
Related Non-Members
KIO::MimetypeJob * | mimetype(const QUrl &url, KIO::JobFlags flags = DefaultFlags) |
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().
Related Non-Members
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.