Pages
API Documentation
On this page

KFileMetaData::TypeInfo Class

The 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)

List of all members, including inherited members

Public Functions

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

bool TypeInfo::operator==(const KFileMetaData::TypeInfo &rhs) const

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