Public Member Functions

nsIExternalHelperAppService Interface Reference

The external helper app service is used for finding and launching platform specific external applications for a given mime content type. More...

import "nsIExternalHelperAppService.idl";

List of all members.

Public Member Functions

nsIStreamListener doContent (in ACString aMimeContentType, in nsIRequest aRequest, in nsIInterfaceRequestor aWindowContext, in boolean aForceSave)
 Binds an external helper application to a stream listener.
boolean applyDecodingForExtension (in AUTF8String aExtension, in ACString aEncodingType)
 Returns true if data from a URL with this extension combination is to be decoded from aEncodingType prior to saving or passing off to helper apps, false otherwise.

Detailed Description

The external helper app service is used for finding and launching platform specific external applications for a given mime content type.


Member Function Documentation

boolean nsIExternalHelperAppService::applyDecodingForExtension ( in AUTF8String  aExtension,
in ACString  aEncodingType 
)

Returns true if data from a URL with this extension combination is to be decoded from aEncodingType prior to saving or passing off to helper apps, false otherwise.

nsIStreamListener nsIExternalHelperAppService::doContent ( in ACString  aMimeContentType,
in nsIRequest  aRequest,
in nsIInterfaceRequestor  aWindowContext,
in boolean  aForceSave 
)

Binds an external helper application to a stream listener.

The caller should pump data into the returned stream listener. When the OnStopRequest is issued, the stream listener implementation will launch the helper app with this data.

Parameters:
aMimeContentType The content type of the incoming data
aRequest The request corresponding to the incoming data
aWindowContext Use GetInterface to retrieve properties like the dom window or parent window... The service might need this in order to bring up dialogs.
aForceSave True to always save this content to disk, regardless of nsIMIMEInfo and other such influences.
Returns:
A nsIStreamListener which the caller should pump the data into.

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