calIFileType
From MDC
Contents |
[edit] Summary
The calIFileType interface provides information about a specific file type.
calIFileType is used in calIImporter and calIExporter to determine which file types are supported for import/export.
Status: unfrozen.
Defined in calendar/base/public/calIImportExport.idl
[edit] Interface Code
[scriptable, uuid(efef8333-e995-4f45-bdf7-bfcabbd9793e)]
interface calIFileType : nsISupports
{
readonly attribute AString defaultExtension;
readonly attribute AString extensionFilter;
readonly attribute AString description;
};
[edit] Attributes
[edit] defaultExtension
The default extension that should be associated with files of this type.
[edit] extensionFilter
The extension filter to use in the filepicker's filter list. Separate multiple extensions with semicolon and space.
[edit] description
The description to show to the user in the filter list.
[edit] Methods
None.
[edit] Related Interfaces
[edit] Example Code
See calHtmlExport.js.