MythTV  master
mythmimedatabase.h
Go to the documentation of this file.
1 #ifndef MYTHMIMEDATABASE_H
2 #define MYTHMIMEDATABASE_H
3 
4 // MythTV
6 
7 class QIODevice;
9 
11 {
12  public:
14 
15  static MythMimeTypes AllTypes();
16  static MythMimeType MimeTypeForName(const QString& Name);
17  static QString SuffixForFileName(const QString& FileName);
18  static MythMimeTypes MimeTypesForFileName(const QString& FileName);
19  static MythMimeType MimeTypeForFileNameAndData(const QString& FileName, const QByteArray& Data);
20  static MythMimeType MimeTypeForFileNameAndData(const QString& FileName, QIODevice* Device);
21 
22  private:
24 };
25 
26 #endif
MythMimeDatabase::MimeTypesForFileName
static MythMimeTypes MimeTypesForFileName(const QString &FileName)
Return a vector of mime types that match the given filename.
Definition: mythmimedatabase.cpp:175
MythMimeDatabase
A wrapper around QMimeDatabase that supports additional mime types.
Definition: mythmimedatabase.h:10
Device
A device containing images (ie. USB stick, CD, storage group etc)
Definition: imagemanager.cpp:35
mythmimetype.h
MythMimeDatabasePriv
A private, internal class that holds custom mime types.
Definition: mythmimedatabase.cpp:20
MythMimeTypes
std::vector< MythMimeType > MythMimeTypes
Definition: mythmimetype.h:13
MythMimeDatabase::SuffixForFileName
static QString SuffixForFileName(const QString &FileName)
Return the preferred suffix for the given filename.
Definition: mythmimedatabase.cpp:187
MythMimeDatabase::MimeTypeForName
static MythMimeType MimeTypeForName(const QString &Name)
Return a mime type that matches the given name.
Definition: mythmimedatabase.cpp:201
MythMimeDatabase::m_priv
MythMimeDatabasePriv * m_priv
Definition: mythmimedatabase.h:23
Name
Definition: channelsettings.cpp:71
MythMimeDatabase::AllTypes
static MythMimeTypes AllTypes()
Return a vector containing all of the known types (both Qt and MythTV)
Definition: mythmimedatabase.cpp:165
MythMimeType
Definition: mythmimetype.h:16
MythMimeDatabase::MythMimeDatabase
MythMimeDatabase()
Definition: mythmimedatabase.cpp:158
MythMimeDatabase::MimeTypeForFileNameAndData
static MythMimeType MimeTypeForFileNameAndData(const QString &FileName, const QByteArray &Data)
Return a mime type for the given FileName and data.
Definition: mythmimedatabase.cpp:217