sbIServicePaneService Interface Reference

The interface exposed by the service pane service. More...

import"sbIServicePaneService.idl";

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

Public Member Functions

void init ()
 
sbIServicePaneNode createNode ()
 
sbIServicePaneNode addNode (in AString aId, in sbIServicePaneNode aParent, in boolean aContainer)
 
void removeNode (in sbIServicePaneNode aNode)
 
sbIServicePaneNode getNode (in AString aId)
 
sbIServicePaneNode getNodeForURL (in AString aURL, [optional] in unsigned long aMatchLevel)
 
nsIArray getNodesByAttributeNS (in AString aNamespace, in AString aName, in AString aValue)
 
void sortNode (in sbIServicePaneNode aNode)
 
void save ()
 
void fillContextMenu (in sbIServicePaneNode aNode, in nsIDOMXULElement aContextMenu, in nsIDOMWindow aParentWindow)
 
void fillNewItemMenu (in sbIServicePaneNode aNode, in nsIDOMXULElement aContextMenu, in nsIDOMWindow aParentWindow)
 
void onSelectionChanged (in sbIServicePaneNode aNode, in nsIDOMNode aContainer, in nsIDOMWindow aParentWindow)
 
PRBool canDrop (in sbIServicePaneNode aNode, in nsIDragSession aDragSession, in PRInt32 aOrientation, in nsIDOMWindow aWindow)
 
void onDrop (in sbIServicePaneNode aNode, in nsIDragSession aDragSession, in PRInt32 aOrientation, in nsIDOMWindow aWindow)
 
PRBool onDragGesture (in sbIServicePaneNode aNode, in nsIDOMDataTransfer aDataTransfer)
 
void onBeforeRename (in sbIServicePaneNode aNode)
 
void onRename (in sbIServicePaneNode aNode, in AString aNewName)
 
void addListener (in sbIServicePaneListener aListener)
 
void removeListener (in sbIServicePaneListener aListener)
 

Public Attributes

readonly attribute
sbIServicePaneNode 
root
 The root of the tree. More...
 
const unsigned long URL_MATCH_EXACT = 0
 
const unsigned long URL_MATCH_PREFIX = 1
 

Detailed Description

The interface exposed by the service pane service.

This allows clients of the the service pane service to interact with it through a JavaScript object interface while it's internally RDF.

Definition at line 237 of file sbIServicePaneService.idl.

Member Function Documentation

void sbIServicePaneService::addListener ( in sbIServicePaneListener  aListener)
sbIServicePaneNode sbIServicePaneService::addNode ( in AString  aId,
in sbIServicePaneNode  aParent,
in boolean  aContainer 
)
PRBool sbIServicePaneService::canDrop ( in sbIServicePaneNode  aNode,
in nsIDragSession  aDragSession,
in PRInt32  aOrientation,
in nsIDOMWindow  aWindow 
)
sbIServicePaneNode sbIServicePaneService::createNode ( )
void sbIServicePaneService::fillContextMenu ( in sbIServicePaneNode  aNode,
in nsIDOMXULElement  aContextMenu,
in nsIDOMWindow  aParentWindow 
)
void sbIServicePaneService::fillNewItemMenu ( in sbIServicePaneNode  aNode,
in nsIDOMXULElement  aContextMenu,
in nsIDOMWindow  aParentWindow 
)
sbIServicePaneNode sbIServicePaneService::getNode ( in AString  aId)
sbIServicePaneNode sbIServicePaneService::getNodeForURL ( in AString  aURL,
[optional] in unsigned long  aMatchLevel 
)
nsIArray sbIServicePaneService::getNodesByAttributeNS ( in AString  aNamespace,
in AString  aName,
in AString  aValue 
)
void sbIServicePaneService::init ( )
Deprecated:
Calling this is no longer necessary, it won't do anything
void sbIServicePaneService::onBeforeRename ( in sbIServicePaneNode  aNode)
PRBool sbIServicePaneService::onDragGesture ( in sbIServicePaneNode  aNode,
in nsIDOMDataTransfer  aDataTransfer 
)
void sbIServicePaneService::onDrop ( in sbIServicePaneNode  aNode,
in nsIDragSession  aDragSession,
in PRInt32  aOrientation,
in nsIDOMWindow  aWindow 
)
void sbIServicePaneService::onRename ( in sbIServicePaneNode  aNode,
in AString  aNewName 
)
void sbIServicePaneService::onSelectionChanged ( in sbIServicePaneNode  aNode,
in nsIDOMNode  aContainer,
in nsIDOMWindow  aParentWindow 
)
void sbIServicePaneService::removeListener ( in sbIServicePaneListener  aListener)
void sbIServicePaneService::removeNode ( in sbIServicePaneNode  aNode)
void sbIServicePaneService::save ( )
void sbIServicePaneService::sortNode ( in sbIServicePaneNode  aNode)

Member Data Documentation

readonly attribute sbIServicePaneNode sbIServicePaneService::root

The root of the tree.

Definition at line 242 of file sbIServicePaneService.idl.

const unsigned long sbIServicePaneService::URL_MATCH_EXACT = 0

URL_MATCH_EXACT only matches a service pane node if its url atribute is an exact string match with the string url spec passed into getNodeForURL.

URL_MATCH_PREFIX is less restrictive than URL_MATCH_EXACT. It matches a service pane node if aUrl begins with the node's contentPrefix attribute OR if the node's url attribute matches aUrl exactly.

Definition at line 295 of file sbIServicePaneService.idl.

const unsigned long sbIServicePaneService::URL_MATCH_PREFIX = 1

Definition at line 296 of file sbIServicePaneService.idl.


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