Uranium
Application Framework
UM.MimeTypeDatabase.MimeTypeDatabase Class Reference

Public Member Functions

def getMimeType
 
def getMimeTypeForFile
 
def addMimeType
 
def removeMimeType
 

Static Public Attributes

 MimeTypeNotFoundError = MimeTypeNotFoundError
 

Detailed Description

Handles lookup of MIME types for files with support for custom MIME types.

This class wraps around ``QMimeDatabase`` and extends it with support for
custom MIME types defined at runtime.

:note Custom MIME types are currently only detected based on extension.

The documentation for this class was generated from the following file: