KFileMetaData::TypeInfo Class
class KFileMetaData::TypeInfoThe TypeInfo class can be used to obtain a rough type classification for a file. More...
Header: | #include <KFileMetaData/TypeInfo> |
CMake: | find_package(KF6 REQUIRED COMPONENTS FileMetaData) target_link_libraries(mytarget PRIVATE KF6::FileMetaData) |
Public Functions
TypeInfo() | |
TypeInfo(KFileMetaData::Type::Type type) | |
QString | displayName() const |
QString | name() const |
KFileMetaData::Type::Type | type() const |
(since 5.91) bool | operator==(const KFileMetaData::TypeInfo &rhs) const |
Static Public Members
Detailed Description
It is somewhat related to the MIME "<type>/<subtype>" classification, but provides additional types, e.g. MIME does not provide a generic "Archive" type.
Member Function Documentation
TypeInfo::TypeInfo()
TypeInfo::TypeInfo(KFileMetaData::Type::Type type)
[static]
QStringList TypeInfo::allNames()
Get all supported property names
QString TypeInfo::displayName() const
A user visible translated name for this type
[static]
KFileMetaData::TypeInfo TypeInfo::fromName(const QString &name)
Construct a TypeInfo from the internal type name. The internal type name is case insensitive
QString TypeInfo::name() const
An internal unique name for the type
KFileMetaData::Type::Type TypeInfo::type() const
The type identifier
[since 5.91]
bool TypeInfo::operator==(const KFileMetaData::TypeInfo &rhs) const
This function was introduced in 5.91.