This class keeps track of matching file extensions to mime types. More...
#include <Radiant/Mime.hpp>
Public Member Functions | |
| QStringList | extensionsByMimeRegexp (const QString &mime) const |
| Get a list of file extensions that match the given mime type. More... | |
| void | insertExtension (const QString &extension, const MimeType &type) |
| Add or replace a shared mapping from file extension to mime type. More... | |
| const MimeType * | mimeTypeByExtension (const QString &ext) const |
| Get the mime type by filename extension. More... | |
Static Public Member Functions | |
| static void | insertSharedExtension (const QString &extension, const MimeType &type) |
| Add or replace a shared mapping from file extension to mime type. More... | |
Protected Types | |
|
typedef std::map< QString, MimeType > | ExtensionMap |
| Map from file extensions to mime types. | |
Protected Attributes | |
| ExtensionMap | m_extensions |
| Extension map specific for this instance. | |
Static Protected Attributes | |
| static ExtensionMap | s_sharedExtensions |
| Global extension map shared by all instances. | |
This class keeps track of matching file extensions to mime types.
| QStringList Radiant::MimeManager::extensionsByMimeRegexp | ( | const QString & | mime | ) | const |
Get a list of file extensions that match the given mime type.
| mime | mime type to query |
| void Radiant::MimeManager::insertExtension | ( | const QString & | extension, |
| const MimeType & | type | ||
| ) |
Add or replace a shared mapping from file extension to mime type.
| extension | filename extension |
| type | mime type |
|
static |
Add or replace a shared mapping from file extension to mime type.
| extension | file extension |
| type | mime type |