Wexus2 0.20
wexus::MimeTypes Class Reference

#include <MimeTypes.h>

List of all members.

Classes

class  MimeTypesException

Public Member Functions

 MimeTypes (void)
 ~MimeTypes ()
 destructor

Static Public Member Functions

static MimeTypesinstance (void)
static bool containsMimeType (const QString &ext)
static const QString & mimeType (const QString &ext)
static QString binaryMimeType (void)

Detailed Description

A databaset, well map, of mime types and their file extensions.

Author:
Aleksander Demko

Constructor & Destructor Documentation

wexus::MimeTypes::MimeTypes ( void  )

Constructor.

Author:
Aleksander Demko

Member Function Documentation

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.

Author:
Aleksander Demko
static MimeTypes* wexus::MimeTypes::instance ( void  ) [static]

Returns the singleton instance. May return null if there is none.

Author:
Aleksander Demko
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.

Author:
Aleksander Demko

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator