Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

calIFileType

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.

Document Tags and Contributors

Tags: 
 Contributors to this page: teoli, fscholz, Ssitter
 Last updated by: fscholz,