tmozIMimeBase Interface Reference

Mime-type database. More...

List of all members.

Public Member Functions

tmozIMimeType get (in AString mimeType)
 Return given mime type.
tmozIMimeType getMimeTypeByExt (in AString path)
 Return mime type by extension.

Public Attributes

readonly attribute
nsISimpleEnumerator 
mimeTypes
 Mime types.


Detailed Description

Mime-type database.

Database of all known mime-types in the Tahiti. Mime-type have to be registered in this database before usage. Check freedesktop.org.xml and mimetypes.xml in the Tahiti installation. This database is composition of these two files and information stored in the operating system.

It is possible to enumerate available mime-types or get specific one.


Member Function Documentation

tmozIMimeType get ( in AString  mimeType  ) 

Return given mime type.

Parameters:
mimeType string representing mime-type, e.g.: "image/jpeg"
Returns:
Return mime-type object. Return NULL if not found.

tmozIMimeType getMimeTypeByExt ( in AString  path  ) 

Return mime type by extension.

Parameters:
path File name or extension
Returns:
Return mime-type object. Return NULL if not found.


Member Data Documentation

readonly attribute nsISimpleEnumerator mimeTypes

Mime types.

Enumerator of all available mime-types. Enumerated objects supports tmozIMimeType.


Generated on Wed Dec 15 09:54:21 2010 for Tahiti XPCOM API