sbITemporaryFileService Interface Reference

import"sbITemporaryFileService.idl";

Inheritance diagram for sbITemporaryFileService:
[legend]
Collaboration diagram for sbITemporaryFileService:
[legend]

Public Member Functions

nsIFile createFile (in unsigned long aType, [optional] in AString aBaseName, [optional] in AString aExtension)
 Create and return a new and unique temporary file of the type specified by aType. If aBaseName is specified, use aBaseName as the base name of the file. If aExtension is specified, use aExtension as the file extension. More...
 

Public Attributes

readonly attribute nsIFile rootTemporaryDirectory
 Root directory of temporary files and directories. More...
 

Detailed Description

The sbITemporaryFileService interface provides support for creating temporary files and directories. These files and directories are deleted when the application quits.

"@songbirdnest.com/Songbird/TemporaryFileService;1" Use get service with this component.

Definition at line 45 of file sbITemporaryFileService.idl.

Member Function Documentation

nsIFile sbITemporaryFileService::createFile ( in unsigned long  aType,
[optional] in AString  aBaseName,
[optional] in AString  aExtension 
)

Create and return a new and unique temporary file of the type specified by aType. If aBaseName is specified, use aBaseName as the base name of the file. If aExtension is specified, use aExtension as the file extension.

Parameters
aTypeType of file to create. One of nsIFile file types.
aBaseNameOptional file base name.
aExtensionOptional file extension.

Member Data Documentation

readonly attribute nsIFile sbITemporaryFileService::rootTemporaryDirectory

Root directory of temporary files and directories.

Definition at line 51 of file sbITemporaryFileService.idl.


The documentation for this interface was generated from the following file: