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

Interface Code

[scriptable, uuid(efef8333-e995-4f45-bdf7-bfcabbd9793e)]
interface calIFileType : nsISupports
{
  readonly attribute AString defaultExtension;
  readonly attribute AString extensionFilter;
  readonly attribute AString description;
};

Attributes

defaultExtension

The default extension that should be associated with files of this type.

extensionFilter

The extension filter to use in the filepicker's filter list. Separate multiple extensions with semicolon and space.

description

The description to show to the user in the filter list.

Methods

None.

calIImporter calIExporter

Example Code

See calHtmlExport.js.