Back to index
|Gives you an array of file types associated with this type. |
|void||setFileExtensions (in AUTF8String aExtensions)|
|Set File Extensions. |
|boolean||extensionExists (in AUTF8String aExtension)|
|Returns whether or not the given extension is associated with this MIME info. |
|void||appendExtension (in AUTF8String aExtension)|
|Append a given extension to the set of extensions. |
|boolean||equals (in nsIMIMEInfo aMIMEInfo)|
|Returns whether or not these two MIME infos are logically equivalent maintaining the one-to-many relationship between MIME types and file extensions. |
|void||launchWithFile (in nsIFile aFile)|
|Launches the application with the specified file, in a way that depends on the value of preferredAction. |
|Returns the first extension association in the internal set of extensions. |
|readonly attribute ACString||MIMEType|
|The MIME type of this MIMEInfo. |
|A human readable description of the MIME info. |
|Mac Type and creator types. |
|Returns a nsIFile that points to the application the user has said they want associated with this content type. |
|A pretty name description of the preferred application. |
|readonly attribute boolean||hasDefaultHandler|
|Indicates whether a default application handler exists, i.e. |
|readonly attribute AString||defaultDescription|
|A pretty name description of the associated default application. |
|const long||saveToDisk = 0|
|const long||alwaysAsk = 1|
|const long||useHelperApp = 2|
|const long||handleInternally = 3|
|const long||useSystemDefault = 4|
|preferredAction is how the user specified they would like to handle this content type: save to disk, use specified helper app, use OS default handler or handle using navigator. |
|alwaysAskBeforeHandling: if true, we should always give the user a dialog asking how to dispose of this content. |
Append a given extension to the set of extensions.
Returns whether or not these two MIME infos are logically equivalent maintaining the one-to-many relationship between MIME types and file extensions.
Returns whether or not the given extension is associated with this MIME info.
Gives you an array of file types associated with this type.
Launches the application with the specified file, in a way that depends on the value of preferredAction.
preferredAction must be useHelperApp or useSystemDefault.
|aFile||The file to launch this application with.|
|NS_ERROR_INVALID_ARG||if action is not valid for this function. Other exceptions may be thrown.|
Set File Extensions.
Input is a comma delimited list of extensions.