MythTV
master
|
#include <libmythbase/http/mythmimetype.h>
Public Member Functions | |
MythMimeType ()=default | |
bool | operator== (const MythMimeType &Other) const |
bool | IsValid () const |
QString | Name () const |
QString | Suffix () const |
Return the preferred filename suffix used by this type. More... | |
QStringList | Aliases () const |
bool | Inherits (const QString &Name) const |
Does this type inherit from the given type. More... | |
void | SetAlias (const QString &Name) |
Protected Member Functions | |
MythMimeType (const QMimeType &MimeType) | |
MythMimeType (QString Name, QString Suffix, MimeMagic Magic, uint Weight, QStringList Inherits) | |
Protected Attributes | |
bool | m_valid { false } |
QString | m_name |
QString | m_alias |
QString | m_suffix |
MimeMagic | m_magic { std::monostate() } |
uint | m_weight { 0 } |
QStringList | m_inherits |
bool | m_qtType { false } |
QMimeType | m_mime |
Friends | |
class | MythMimeDatabase |
class | MythMimeDatabasePriv |
Definition at line 16 of file mythmimetype.h.
|
default |
|
protected |
Definition at line 4 of file mythmimetype.cpp.
|
protected |
Definition at line 10 of file mythmimetype.cpp.
bool MythMimeType::operator== | ( | const MythMimeType & | Other | ) | const |
Definition at line 21 of file mythmimetype.cpp.
bool MythMimeType::IsValid | ( | ) | const |
Definition at line 26 of file mythmimetype.cpp.
Referenced by MythHTTPEncoding::GetContentType(), and MythHTTPEncoding::GetMimeType().
QString MythMimeType::Name | ( | ) | const |
Definition at line 31 of file mythmimetype.cpp.
Referenced by MythHTTP::GetContentType(), operator==(), MythSerialiser::Serialise(), and SetAlias().
QString MythMimeType::Suffix | ( | ) | const |
Return the preferred filename suffix used by this type.
Definition at line 51 of file mythmimetype.cpp.
QStringList MythMimeType::Aliases | ( | ) | const |
Definition at line 58 of file mythmimetype.cpp.
Referenced by MythSerialiser::Serialise().
bool MythMimeType::Inherits | ( | const QString & | Name | ) | const |
Does this type inherit from the given type.
This is a simple string match (i.e. much simpler that the Qt version).
Definition at line 69 of file mythmimetype.cpp.
Referenced by MythHTTP::GetContentType().
void MythMimeType::SetAlias | ( | const QString & | Name | ) |
Definition at line 40 of file mythmimetype.cpp.
|
friend |
Definition at line 18 of file mythmimetype.h.
|
friend |
Definition at line 19 of file mythmimetype.h.
Definition at line 37 of file mythmimetype.h.
Referenced by IsValid().
|
protected |
Definition at line 38 of file mythmimetype.h.
Referenced by Aliases(), Name(), and operator==().
|
protected |
Definition at line 39 of file mythmimetype.h.
Referenced by Name(), and SetAlias().
|
protected |
Definition at line 40 of file mythmimetype.h.
Referenced by Suffix().
|
protected |
Definition at line 41 of file mythmimetype.h.
|
protected |
Definition at line 42 of file mythmimetype.h.
Referenced by MythMimeDatabasePriv::MagicSearch().
|
protected |
Definition at line 43 of file mythmimetype.h.
Referenced by Inherits().
Definition at line 44 of file mythmimetype.h.
Referenced by Aliases(), Inherits(), Name(), and Suffix().
|
protected |
Definition at line 45 of file mythmimetype.h.
Referenced by Aliases(), Inherits(), Name(), and Suffix().