Uranium
Application Framework
UM.MimeTypeDatabase.MimeType Class Reference

Public Member Functions

def __init__
 
def name (self)
 
def comment (self)
 
def suffixes (self)
 
def preferredSuffix (self)
 
def __repr__ (self)
 
def __eq__
 
def stripExtension
 

Static Public Member Functions

def fromQMimeType
 

Detailed Description

Simple value type class that encapsulates MIME type data.

Member Function Documentation

◆ __repr__()

def UM.MimeTypeDatabase.MimeType.__repr__ (   self,
  str 
)
Gives a programmer-readable representation of the MIME type.

:return: A string representing the MIME type.

◆ comment()

def UM.MimeTypeDatabase.MimeType.comment (   self,
  str 
)
The comment that describes of the MIME type.

◆ name()

def UM.MimeTypeDatabase.MimeType.name (   self,
  str 
)
The name that identifies the MIME type.

◆ preferredSuffix()

def UM.MimeTypeDatabase.MimeType.preferredSuffix (   self,
  str 
)
The preferred file name suffix for the MIME type.

Example: "cfg" or "tar.gz".

◆ suffixes()

def UM.MimeTypeDatabase.MimeType.suffixes (   self,
  List,
  str 
)
The list of file name suffixes for the MIME type.

Example: ["cfg", "tar.gz"]

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