Wexus2 0.20
|
#include <MimeTypes.h>
Classes | |
class | MimeTypesException |
Public Member Functions | |
MimeTypes (void) | |
~MimeTypes () | |
destructor | |
Static Public Member Functions | |
static MimeTypes * | instance (void) |
static bool | containsMimeType (const QString &ext) |
static const QString & | mimeType (const QString &ext) |
static QString | binaryMimeType (void) |
A databaset, well map, of mime types and their file extensions.
wexus::MimeTypes::MimeTypes | ( | void | ) |
Constructor.
static bool wexus::MimeTypes::containsMimeType | ( | const QString & | ext | ) | [static] |
Is there a mime type of this extension? ext must already be all lower case and shouldn't include any periods.
static MimeTypes* wexus::MimeTypes::instance | ( | void | ) | [static] |
Returns the singleton instance. May return null if there is none.
static const QString& wexus::MimeTypes::mimeType | ( | const QString & | ext | ) | [static] |
Returns the mime type for the given extension. Throws an exception if it doesn't exist. ext must already be all lower case and shouldn't include any periods.