MythTV  master
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
MythMimeDatabasePriv Class Reference

A private, internal class that holds custom mime types. More...

Collaboration diagram for MythMimeDatabasePriv:
[legend]

Public Member Functions

 MythMimeDatabasePriv ()
 
const MythMimeTypesAllTypes () const
 
MythMimeType MimeTypeForName (const QString &Name) const
 
MythMimeTypes MimeTypesForFileName (const QString &FileName) const
 
QString SuffixForFileName (const QString &FileName) const
 
MythMimeType MimeTypeForFileNameAndData (const QString &FileName, QIODevice *Device) const
 

Static Public Member Functions

static MythMimeType MagicSearch (const MythMimeTypes &Types, const QByteArray &Data)
 
static MythMimeTypes ToMythMimeTypes (const QList< QMimeType > &Types)
 

Private Types

using MimeDesc = std::tuple< QString, QString, MimeMagic, uint, QStringList >
 

Private Attributes

MythMimeTypes m_mimes
 

Detailed Description

A private, internal class that holds custom mime types.

Note
This is created as a static singleton on first use.

Definition at line 20 of file mythmimedatabase.cpp.

Member Typedef Documentation

◆ MimeDesc

using MythMimeDatabasePriv::MimeDesc = std::tuple<QString,QString,MimeMagic,uint,QStringList>
private

Definition at line 22 of file mythmimedatabase.cpp.

Constructor & Destructor Documentation

◆ MythMimeDatabasePriv()

MythMimeDatabasePriv::MythMimeDatabasePriv ( )
inline

Definition at line 25 of file mythmimedatabase.cpp.

Member Function Documentation

◆ AllTypes()

const MythMimeTypes& MythMimeDatabasePriv::AllTypes ( ) const
inline

Definition at line 51 of file mythmimedatabase.cpp.

Referenced by MimeTypeForFileNameAndData().

◆ MimeTypeForName()

MythMimeType MythMimeDatabasePriv::MimeTypeForName ( const QString &  Name) const
inline

Definition at line 56 of file mythmimedatabase.cpp.

◆ MimeTypesForFileName()

MythMimeTypes MythMimeDatabasePriv::MimeTypesForFileName ( const QString &  FileName) const
inline

Definition at line 65 of file mythmimedatabase.cpp.

Referenced by MimeTypeForFileNameAndData().

◆ SuffixForFileName()

QString MythMimeDatabasePriv::SuffixForFileName ( const QString &  FileName) const
inline

Definition at line 75 of file mythmimedatabase.cpp.

◆ MagicSearch()

static MythMimeType MythMimeDatabasePriv::MagicSearch ( const MythMimeTypes Types,
const QByteArray &  Data 
)
inlinestatic

Definition at line 84 of file mythmimedatabase.cpp.

Referenced by MimeTypeForFileNameAndData().

◆ MimeTypeForFileNameAndData()

MythMimeType MythMimeDatabasePriv::MimeTypeForFileNameAndData ( const QString &  FileName,
QIODevice *  Device 
) const
inline

Definition at line 103 of file mythmimedatabase.cpp.

◆ ToMythMimeTypes()

static MythMimeTypes MythMimeDatabasePriv::ToMythMimeTypes ( const QList< QMimeType > &  Types)
inlinestatic

Member Data Documentation

◆ m_mimes

MythMimeTypes MythMimeDatabasePriv::m_mimes
private

The documentation for this class was generated from the following file: