Subclasses
Attributes
From nsIDownload
The target of a download is always a file on the local file system.
From nsIFilePicker
Set the directory that the file open/save dialog initially displays @param displayDirectory the name of the directory
Get the nsILocalFile for the file or directory. @return Returns the file currently selected
From nsIProfileLock
The main profile directory.
A directory corresponding to the main profile directory that exists for the purpose of storing data on the local filesystem, including cache files or other data files that may not represent critical user data. (e.g., this directory may not be included as part of a backup scheme.) In some cases, this directory may just be the main profile directory.
From nsIRelativeFilePref
file The file whose location is stored or retrieved.
From nsIToolkitProfile
The location of the profile local directory, which may be the same as the root directory. See nsIProfileLock::localDirectory.
A interface representing a profile.
@note THIS INTERFACE SHOULD BE IMPLEMENTED BY THE TOOLKIT CODE ONLY! DON'T
EVEN THINK ABOUT IMPLEMENTING THIS IN JAVASCRIPT!
The location of the profile directory.
Returns
From nsIHelperAppLauncherDialog
nsILocalFile
promptForSaveToFile(in nsIHelperAppLauncher aLauncher, in nsISupports aWindowContext, in wstring aDefaultFile, in wstring aSuggestedFileExtension)
From nsIPref
From nsIProfileInternal
Returns a profile directory of the importType. The path will point to the 4.x profile directory. Should be used only from the import module.
Parameters
From nsIDownloadManager
Creates an nsIDownload and adds it to be managed by the download manager.
@param aSource The source URI of the transfer. Must not be null.
@param aTarget The target URI of the transfer. Must not be null.
@param aDisplayName The user-readable description of the transfer.
Can be empty.
@param aMIMEInfo The MIME info associated with the target,
including MIME type and helper app when appropriate.
This parameter is optional.
@param startTime Time when the download started
@param aTempFile The location of a temporary file; i.e. a file in which
the received data will be stored, but which is not
equal to the target file. (will be moved to the real
target by the caller, when the download is finished)
May be null.
@param aCancelable An object that can be used to abort the download.
Must not be null.
@return The newly created download item with the passed-in properties.
nsIDownload
addDownload(in short aDownloadType, in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in AString aIconURL, in nsIMIMEInfo aMIMEInfo, in PRTime aStartTime, in nsILocalFile aTempFile, in nsICancelable aCancelable)
From nsILocalFile
initWithFile
Initialize this object with another file
@param aFile
the file this becomes equivalent to
getRelativeDescriptor
Returns a relative file path in an opaque, XP format. It is therefore
not a native path.
The character set of the string returned from this function is
undefined. DO NOT TRY TO INTERPRET IT AS HUMAN READABLE TEXT!
@param fromFile
the file from which the descriptor is relative.
There is no defined result if this param is null.
setRelativeDescriptor
Initializes the file to the location relative to fromFile using
a string returned by getRelativeDescriptor.
@param fromFile
the file to which the descriptor is relative
@param relative
the relative descriptor obtained from getRelativeDescriptor
From nsILocalFileMac
openDocWithApp
Open the document that this file points to with the given application.
@param aAppToOpenWith The application with which to open the document.
If NULL, the creator code of the document is used
to determine the application.
@param aLaunchInBackground TRUE if the application should not come to the front.
launchWithDoc Launch the application that this file points to with a document. @param aDocToLoad Must not be NULL. If no document, use nsILocalFile::launch @param aLaunchInBackground TRUE if the application should not come to the front.
From nsIPref
From nsIShellService_MOZILLA_1_8_BRANCH
Opens an application with a specific URI to load.
@param application
The application file (or bundle directory, on OS X)
@param uri
The uri to be loaded by the application
From nsIToolkitProfileService
Lock an arbitrary path as a profile. If the path does not exist, it will be created and the defaults copied from the application directory.
Create a new profile.
@param aRootDir
The profile directory. May be null, in which case a suitable
default will be chosen based on the profile name.
@param aTempDir
The profile temporary directory. May be null, in which case a
suitable default will be chosen based either on the profile name
if aRootDir is null or aRootDir itself.
@param aName
The profile name.
nsIToolkitProfile
createProfile(in nsILocalFile aRootDir, in nsILocalFile aTempDir, in AUTF8String aName)
Create a new profile.
@param aRootDir
The profile directory. May be null, in which case a suitable
default will be chosen based on the profile name.
@param aTempDir
The profile temporary directory. May be null, in which case a
suitable default will be chosen based either on the profile name
if aRootDir is null or aRootDir itself.
@param aName
The profile name.
nsIToolkitProfile
createProfile(in nsILocalFile aRootDir, in nsILocalFile aTempDir, in AUTF8String aName)
Lock an arbitrary path as a profile. If the path does not exist, it will be created and the defaults copied from the application directory.
From nsITransfer
Initializes the transfer with certain properties. This function must
be called prior to accessing any properties on this interface.
@param aSource The source URI of the transfer. Must not be null.
@param aTarget The target URI of the transfer. Must not be null.
@param aDisplayName The user-readable description of the transfer.
Can be empty.
@param aMIMEInfo The MIME info associated with the target,
including MIME type and helper app when appropriate.
This parameter is optional.
@param startTime Time when the download started (ie, when the first
response from the server was received)
XXX presumably wbp and exthandler do this differently
@param aTempFile The location of a temporary file; i.e. a file in which
the received data will be stored, but which is not
equal to the target file. (will be moved to the real
target by the caller, when the download is finished)
May be null.
@param aCancelable An object that can be used to abort the download.
Must not be null.
Implementations are expected to hold a strong
reference to this object until the download is
finished, at which point they should release the
reference.
void
init(in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in nsIMIMEInfo aMIMEInfo, in PRTime startTime, in nsILocalFile aTempFile, in nsICancelable aCancelable)
From nsIX509CertDB
Export a set of certs and keys from the database to a PKCS#12 file.
@param aToken Optionally limits the scope of
this function to a token device.
Can be null to mean any token.
@param aFile Identifies a file that will be filled with the data
to be exported.
@param count The number of certificates to be exported.
@param aCerts The array of all certificates to be exported.
void
exportPKCS12File(in nsISupports aToken, in nsILocalFile aFile, in unsigned long count, [array, size_is(count)] in nsIX509Cert aCerts)
Import certificate(s) from file
@param aToken Optionally limits the scope of
this function to a token device.
Can be null to mean any token.
@param aFile Identifies a file that contains the certificate
to be imported.
@param aType Describes the type of certificate that is going to
be imported. See type constants in nsIX509Cert.
Import a PKCS#12 file containing cert(s) and key(s) into the database.
@param aToken Optionally limits the scope of
this function to a token device.
Can be null to mean any token.
@param aFile Identifies a file that contains the data
to be imported.
From nsIXPTLoader
enumerate entries in the given archive
for each entry found, the loader will call the sink's
foundEntry() method with the appropriate information and a
stream that the consumer can read from
@param file the file to read from
@param sink an object which will be called with each file found
in the file
Load a specific entry from the archive
@param file the file to read from
@param name the name of the xpt within the file
@return an input stream that will read the raw xpt data from
the file