Public Member Functions

amIWebInstaller Interface Reference

This interface is used to allow webpages to start installing add-ons. More...

import "amIWebInstaller.idl";

List of all members.

Public Member Functions

NS_SCRIPTABLE NS_IMETHOD IsInstallEnabled (const nsAString &aMimetype, nsIURI *aReferer, PRBool *_retval NS_OUTPARAM)=0
 Checks if installation is enabled for a webpage.
NS_SCRIPTABLE NS_IMETHOD InstallAddonsFromWebpage (const nsAString &aMimetype, nsIDOMWindowInternal *aWindow, nsIURI *aReferer, const PRUnichar **aUris, const PRUnichar **aHashes, const PRUnichar **aNames, const PRUnichar **aIcons, amIInstallCallback *aCallback, PRUint32 aInstallCount, PRBool *_retval NS_OUTPARAM)=0
 Installs an array of add-ons at the request of a webpage.
boolean isInstallEnabled (in AString aMimetype, in nsIURI aReferer)
 Checks if installation is enabled for a webpage.
boolean installAddonsFromWebpage (in AString aMimetype, in nsIDOMWindowInternal aWindow, in nsIURI aReferer,[array, size_is(aInstallCount)] in wstring aUris,[array, size_is(aInstallCount)] in wstring aHashes,[array, size_is(aInstallCount)] in wstring aNames,[array, size_is(aInstallCount)] in wstring aIcons,[optional] in amIInstallCallback aCallback,[optional] in PRUint32 aInstallCount)
 Installs an array of add-ons at the request of a webpage.

Detailed Description

This interface is used to allow webpages to start installing add-ons.


Member Function Documentation

NS_SCRIPTABLE NS_IMETHOD amIWebInstaller::InstallAddonsFromWebpage ( const nsAString aMimetype,
nsIDOMWindowInternal aWindow,
nsIURI aReferer,
const PRUnichar **  aUris,
const PRUnichar **  aHashes,
const PRUnichar **  aNames,
const PRUnichar **  aIcons,
amIInstallCallback aCallback,
PRUint32  aInstallCount,
PRBool *_retval  NS_OUTPARAM 
) [pure virtual]

Installs an array of add-ons at the request of a webpage.

Parameters:
aMimetype The mimetype for the add-ons
aWindow The window installing the add-ons
aReferer The URI for the webpage installing the add-ons
aUris The URIs of add-ons to be installed
aHashes The hashes for the add-ons to be installed
aNames The names for the add-ons to be installed
aIcons The icons for the add-ons to be installed
aCallback An optional callback to notify about installation success and failure
aInstallCount An optional argument including the number of add-ons to install
Returns:
true if the installation was successfully started
boolean amIWebInstaller::installAddonsFromWebpage ( in AString  aMimetype,
in nsIDOMWindowInternal  aWindow,
in nsIURI  aReferer,
[array, size_is(aInstallCount)] in wstring  aUris,
[array, size_is(aInstallCount)] in wstring  aHashes,
[array, size_is(aInstallCount)] in wstring  aNames,
[array, size_is(aInstallCount)] in wstring  aIcons,
[optional] in amIInstallCallback  aCallback,
[optional] in PRUint32  aInstallCount 
)

Installs an array of add-ons at the request of a webpage.

Parameters:
aMimetype The mimetype for the add-ons
aWindow The window installing the add-ons
aReferer The URI for the webpage installing the add-ons
aUris The URIs of add-ons to be installed
aHashes The hashes for the add-ons to be installed
aNames The names for the add-ons to be installed
aIcons The icons for the add-ons to be installed
aCallback An optional callback to notify about installation success and failure
aInstallCount An optional argument including the number of add-ons to install
Returns:
true if the installation was successfully started
boolean amIWebInstaller::isInstallEnabled ( in AString  aMimetype,
in nsIURI  aReferer 
)

Checks if installation is enabled for a webpage.

Parameters:
aMimetype The mimetype for the add-on to be installed
referer The URL of the webpage trying to install an add-on
Returns:
true if installation is enabled
NS_SCRIPTABLE NS_IMETHOD amIWebInstaller::IsInstallEnabled ( const nsAString aMimetype,
nsIURI aReferer,
PRBool *_retval  NS_OUTPARAM 
) [pure virtual]

Checks if installation is enabled for a webpage.

Parameters:
aMimetype The mimetype for the add-on to be installed
referer The URL of the webpage trying to install an add-on
Returns:
true if installation is enabled

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