Back to index

 lightning-sunbird  0.9+nobinonly
nsIWindowsHooks Interface Reference

import "nsIWindowsHooks.idl";

Inheritance diagram for nsIWindowsHooks:
[legend]
Collaboration diagram for nsIWindowsHooks:
[legend]

List of all members.

## Public Member Functions

boolean checkSettings (in nsIDOMWindowInternal aParent)
boolean isOptionEnabled (in string option)
Returns true if command is in the "(appname) QuickLaunch" value in the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run key.
void startupAddOption (in string option)
Adds the option to the "(appname) QuickLaunch" value to the key mentioned above, with data "(path\to\app.exe) option", if not done already.
void startupRemoveOption (in string option)
Removes the commnand from the "(appname) QuickLaunch" value from the key mentioned above, if not done already.
void setImageAsWallpaper (in nsIDOMElement aImageElement, in boolean useBackground)
Accepts an element, either an HTML img element or an element with a background image, serializes the image to a bitmap file in the windows directory, and sets it to be the desktop wallpaper.

## Public Attributes

attribute nsIWindowsHooksSettings settings

## Detailed Description

Definition at line 163 of file nsIWindowsHooks.idl.

## Member Function Documentation

 boolean nsIWindowsHooks::checkSettings ( in nsIDOMWindowInternal aParent )
 boolean nsIWindowsHooks::isOptionEnabled ( in string option )

Returns true if command is in the "(appname) QuickLaunch" value in the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run key.

 void nsIWindowsHooks::setImageAsWallpaper ( in nsIDOMElement aImageElement, in boolean useBackground )

Accepts an element, either an HTML img element or an element with a background image, serializes the image to a bitmap file in the windows directory, and sets it to be the desktop wallpaper.

 void nsIWindowsHooks::startupAddOption ( in string option )

Adds the option to the "(appname) QuickLaunch" value to the key mentioned above, with data "(path\to\app.exe) option", if not done already.

 void nsIWindowsHooks::startupRemoveOption ( in string option )

Removes the commnand from the "(appname) QuickLaunch" value from the key mentioned above, if not done already.

And deletes the "(appname) QuickLaunch" value entirely if there are no options left

## Member Data Documentation

Definition at line 169 of file nsIWindowsHooks.idl.

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