KDECore
kmimetype.h
Go to the documentation of this file.
46class KDECORE_EXPORT KMimeType : public KServiceType // TODO KDE5: drop kservicetype inheritance, inherit kshared
Definition kmimetype_p.h:25
static QString favIconForUrl(const KUrl &url)
Return the "favicon" (see http://www.favicon.com) for the given url, if available.
Definition kmimetype.cpp:488
static QString iconNameForUrl(const KUrl &url, mode_t mode=0)
Return the filename of the icon associated with the mimetype, for a given url.
Definition kmimetype.cpp:460
QString comment(const KUrl &url=KUrl()) const
Returns the descriptive comment associated with the MIME type.
Definition kmimetype.cpp:525
QStringList patterns() const
Retrieve the list of patterns associated with the MIME Type.
Definition kmimetype.cpp:610
QString iconName(const KUrl &url=KUrl()) const
Return the filename of the icon associated with the mimetype.
Definition kmimetype.cpp:604
KServiceType(KDesktopFile *config)
Construct a service type and take all information from a desktop file.
Definition kservicetype.cpp:46
QString comment() const
Returns the descriptive comment associated, if any.
Definition kservicetype.cpp:232
Definition kaboutdata.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.