Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIHelperAppLauncherDialog Interface Reference

This interface is used to display a confirmatino dialog before launching a "helper app" to handle content not handled by Mozilla. More...

import "nsIHelperAppLauncherDialog.idl";

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

List of all members.

Public Member Functions

void show (in nsIHelperAppLauncher aLauncher, in nsISupports aContext, in unsigned long aReason)
nsILocalFile promptForSaveToFile (in nsIHelperAppLauncher aLauncher, in nsISupports aWindowContext, in wstring aDefaultFile, in wstring aSuggestedFileExtension)

Public Attributes

const unsigned long REASON_CANTHANDLE = 0
 This request is passed to the helper app dialog because Gecko can not handle content of this type.
const unsigned long REASON_SERVERREQUEST = 1
 The server requested external handling.
const unsigned long REASON_TYPESNIFFED = 2
 Gecko detected that the type sent by the server (e.g.

Detailed Description

This interface is used to display a confirmatino dialog before launching a "helper app" to handle content not handled by Mozilla.

Usage: Clients (of which there is one: the nsIExternalHelperAppService implementation in mozilla/uriloader/exthandler) create an instance of this interface (using the contract ID) and then call the show() method.

The dialog is shown non-modally. The implementation of the dialog will access methods of the nsIHelperAppLauncher passed in to show() in order to cause a "save to disk" or "open using" action.

Definition at line 57 of file nsIHelperAppLauncherDialog.idl.


Member Function Documentation

nsILocalFile nsIHelperAppLauncherDialog::promptForSaveToFile ( in nsIHelperAppLauncher  aLauncher,
in nsISupports  aWindowContext,
in wstring  aDefaultFile,
in wstring  aSuggestedFileExtension 
)
void nsIHelperAppLauncherDialog::show ( in nsIHelperAppLauncher  aLauncher,
in nsISupports  aContext,
in unsigned long  aReason 
)

Member Data Documentation

This request is passed to the helper app dialog because Gecko can not handle content of this type.

Definition at line 62 of file nsIHelperAppLauncherDialog.idl.

The server requested external handling.

Definition at line 67 of file nsIHelperAppLauncherDialog.idl.

Gecko detected that the type sent by the server (e.g.

text/plain) does not match the actual type.

Definition at line 73 of file nsIHelperAppLauncherDialog.idl.


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