MythTV master
mythmimedatabase.h
Go to the documentation of this file.
1#ifndef MYTHMIMEDATABASE_H
2#define MYTHMIMEDATABASE_H
3
4// MythTV
6
7class 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
A device containing images (ie. USB stick, CD, storage group etc)
A private, internal class that holds custom mime types.
A wrapper around QMimeDatabase that supports additional mime types.
static MythMimeTypes MimeTypesForFileName(const QString &FileName)
Return a vector of mime types that match the given filename.
static QString SuffixForFileName(const QString &FileName)
Return the preferred suffix for the given filename.
static MythMimeType MimeTypeForName(const QString &Name)
Return a mime type that matches the given name.
static MythMimeTypes AllTypes()
Return a vector containing all of the known types (both Qt and MythTV)
static MythMimeType MimeTypeForFileNameAndData(const QString &FileName, const QByteArray &Data)
Return a mime type for the given FileName and data.
MythMimeDatabasePriv * m_priv
std::vector< MythMimeType > MythMimeTypes
Definition: mythmimetype.h:13