Back to index

lightning-sunbird  0.9+nobinonly
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";

Inheritance diagram for nsIExternalHelperAppService:
Inheritance graph
[legend]
Collaboration diagram for nsIExternalHelperAppService:
Collaboration graph
[legend]

List of all members.

Public Member Functions

nsIStreamListener doContent (in ACString aMimeContentType, in nsIRequest aRequest, in nsIInterfaceRequestor aWindowContext)
 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.

Definition at line 55 of file nsIExternalHelperAppService.idl.


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 
)

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:
aMimeContentTypeThe content type of the incoming data
aRequestThe request corresponding to the incoming data
aWindowContextUse GetInterface to retrieve properties like the dom window or parent window... The service might need this in order to bring up dialogs.
Returns:
A nsIStreamListener which the caller should pump the data into.

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