KFileMetaData::TypeInfo

Search for usage in LXR

KFileMetaData::TypeInfo Class Reference

#include <KFileMetaData/TypeInfo>

Public Member Functions

 TypeInfo (const TypeInfo &ti)
 
 TypeInfo (Type::Type type)
 
QString displayName () const
 
QString name () const
 
TypeInfooperator= (const TypeInfo &rhs)
 
bool operator== (const TypeInfo &rhs) const
 
Type::Type type () const
 

Static Public Member Functions

static QStringList allNames ()
 
static TypeInfo fromName (const QString &name)
 

Detailed Description

The TypeInfo class can be used to obtain a rough type classification for a file.

It is somewhat related to the MIME "<type>/<subtype>" classification, but provides additional types, e.g. MIME does not provide a generic "Archive" type.

See also
<KFileMetaData/Types>

Definition at line 30 of file typeinfo.h.

Constructor & Destructor Documentation

◆ TypeInfo() [1/3]

TypeInfo::TypeInfo ( )

Definition at line 73 of file typeinfo.cpp.

◆ TypeInfo() [2/3]

TypeInfo::TypeInfo ( Type::Type type)

Definition at line 76 of file typeinfo.cpp.

◆ TypeInfo() [3/3]

TypeInfo::TypeInfo ( const TypeInfo & ti)

Definition at line 81 of file typeinfo.cpp.

Member Function Documentation

◆ allNames()

QStringList TypeInfo::allNames ( )
static

Get all supported property names.

Definition at line 121 of file typeinfo.cpp.

◆ displayName()

QString TypeInfo::displayName ( ) const

A user visible translated name for this type.

Definition at line 99 of file typeinfo.cpp.

◆ fromName()

TypeInfo TypeInfo::fromName ( const QString & name)
static

Construct a TypeInfo from the internal type name.

The internal type name is case insensitive

Definition at line 114 of file typeinfo.cpp.

◆ name()

QString TypeInfo::name ( ) const

An internal unique name for the type.

Definition at line 104 of file typeinfo.cpp.

◆ operator=()

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

Definition at line 88 of file typeinfo.cpp.

◆ operator==()

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

Definition at line 94 of file typeinfo.cpp.

◆ type()

Type::Type TypeInfo::type ( ) const

The type identifier.

Definition at line 109 of file typeinfo.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.