25 #include "nsISupports.idl"
27 interface nsIDOMDocument;
64 [scriptable,
uuid(1f068d94-1dd2-11b2-825
d-8f815e64b75d)]
72 readonly attribute AString
id;
215 AString
getCommandId( in AString aSubMenu, in PRInt32 aIndex, in AString
aHost );
421 in nsIDOMNode aCustomCommandElement );
508 [scriptable,
uuid(f08d76b6-cbe6-4cad-945e-1b1eea10a16c)]
537 [scriptable,
uuid(5ff1f576-1dd2-11b2-ae11-9f40001e5dbb)]
567 [scriptable,
uuid(385a86c4-1dd2-11b2-a945-f6f41c562fe9)]
588 in sbiLibrary aLibrary,
610 in sbiLibrary aLibrary,
631 in AString aPlaylistType,
648 in AString aPlaylistType,
664 in AString aPlaylistType );
683 in AString aPlaylistType,
696 in AString aPlaylistType,
712 in AString aPlaylistType );
PRBool getCommandEnabled(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the enabled state for the requested command element index.
PRBool getCommandShortcutLocal(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return a boolean reflecting the local vs window-wide behavior of the shortcut.
void setContext(in sbIPlaylistCommandsContext aContext)
Be informed when a set of commands are attached to a playlist element.
void notifyListeners(in AString aTriggerFunction, in sbIPlaylistCommands aCommandObject)
Notifies the listeners added to this command object. aTriggerFunction can be onCommandAdded, onCommandRemoved, or onCommandChanged and the param aCommandObject is expected to be the added, removed, or changed sbIPlaylistCommands object.
PRBool getCommandVisible(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the visible state for the requested command element index.
readonly attribute sbIPlaylistCommands commands
The commands object itself.
void registerPlaylistCommandsMediaItem(in AString aContextGUID, in AString aPlaylistType, in sbIPlaylistCommands aCommandObj)
Register sbIPlaylistCommands objects to be shown for specific playlists in order to let the user perf...
readonly attribute sbIPlaylistCommandsBuilderPCCallback visibleCallback
Return the current visibility callback method that determines where this object will be visible...
attribute PRUint16 targetFlags
Flags of the form specified in sbIPlaylistCommandsHelper.idl to indicate the current location of this...
void shutdownCommands()
Shutdown function.
The interface for receiving notices when a Command Object is added to or removed from another Command...
nsISimpleEnumerator getChildrenCommandObjects()
Returns all sbIPlaylistCommands that are children of this command object (returns the originals) ...
AString getCommandToolTipText(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the human readable text for the requested command element's tooltip.
void withdraw(in AString aCommandGUID, in sbIPlaylistCommands aCommandObj)
Withdraw a previously published sbIPlaylistCommands interface.
void addListener(in sbIPlaylistCommandsListener aListener)
Adds a listener to this command object to detect child additions or removals and other changes to the...
AString getCommandText(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the human readable text for the requested command element index.
void onCommand(in AString aSubMenu, in PRInt32 aIndex, in AString aHost, in AString aId, in AString aValue)
Handle the fact that a command was activated.
readonly attribute nsIDOMWindow window
The outer window containing the playlist against which the commands are acting.
A callback interface used to receive callbacks from an sbIPlaylistCommandsBuilder object relating to ...
void removeListenerForMediaList(in sbIMediaList aMediaList, in sbIPlaylistCommandsListener aListener)
Removes listeners for the param medialist.
void publish(in AString aCommandGUID, in sbIPlaylistCommands aCommandObj)
Publish an sbIPlaylistCommands interface for public consumption.
void initCommands(in AString aHost)
Initialization function.
void onCommandRemoved(in sbIPlaylistCommands aCommandObject)
Callback method when a Command Object is removed.
void onCommandAdded(in sbIPlaylistCommands aCommandObject)
Callback method when a Command Object is added.
void registerPlaylistCommandsMediaList(in AString aContextGUID, in AString aPlaylistType, in sbIPlaylistCommands aCommandObj)
Register sbIPlaylistCommands objects to be shown for specific playlists in order to let the user perf...
AString getCommandChoiceItem(in AString aChoiceMenu, in AString aHost)
Return the selected item for choice list of the requested command element index.
_collectFormDataForFrame aDocument
readonly attribute AString id
An identifier for the command object, unique for each playlist type or guid. Must be set with the ini...
void unregisterPlaylistCommandsMediaItem(in AString aContextGUID, in AString aPlaylistType, in sbIPlaylistCommands aCommandObj)
Unregister a sbIPlaylistCommands object that was previously registered to registerPlaylistCommandsMed...
readonly attribute nsIDOMNode playlist
The playlist against which the commands are acting.
void registerPlaylistCommandsForLibrary(in PRBool aTargetServicePane, in sbiLibrary aLibrary, in sbIPlaylistCommands aCommandObj)
Register sbIPlaylistCommands objects to be shown for aLibrary and all mediaLists in that library...
void unregisterPlaylistCommandsMediaList(in AString aContextGUID, in AString aPlaylistType, in sbIPlaylistCommands aCommandObj)
Unregister a sbIPlaylistCommands object that was previously registered to registerPlaylistCommandsMed...
void addCommandObject(in sbIPlaylistCommands aCommandObjectAction)
Adds a command object as a child of this sbIPlaylistCommands object.
sbIPlaylistCommands getCommandSubObject(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return an sbIPlaylistCommands secondary object.
sbIPlaylistCommands getPlaylistCommandsMediaList(in AString aContextGUID, in AString aPlaylistType)
Retrieve the root sbIPlaylistCommands object for a specific playlist.
void removeListener(in sbIPlaylistCommandsListener aListener)
Removes a listener from this command object.
void unregisterPlaylistCommandsForLibrary(in PRBool aTargetServicePane, in sbiLibrary aLibrary, in sbIPlaylistCommands aCommandObj)
Unregister an sbIPlaylistCommands object from aLibrary. This will only successfully unregister comman...
nsIDOMNode instantiateCustomCommand(in AString aSubMenu, in PRInt32 aIndex, in AString aHost, in AString aID, in nsIDOMDocument aDocument)
Instantiate the custom element associated with the requested command.
void addListenerForMediaList(in sbIMediaList aMediaList, in sbIPlaylistCommandsListener aListener)
Adds the param listener to the root sbIPlaylistCommands for the param medialist. Every medialist can ...
Media library abstraction.
PRInt32 getNumCommands(in AString aSubMenu, in AString aHost)
Return the number of command elements to be displayed.
An interface that represents the set of command buttons and context menu items available on a display...
AString getCommandShortcutModifiers(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the shortcut modifiers of the requested command element index.
PRBool getVisible(in AString aHost)
Return the visible state for the entire command object.
readonly attribute sbIMediaItem medialist
The medialist against which the commands are acting.
sbIPlaylistCommands duplicate()
Duplicate the command object.
void removeCommandObject(in sbIPlaylistCommands aCommandObject)
Removes a child command object from this sbIPlaylistCommands object.
The interface for giving context to a playlistcommands object.
void onCommandChanged(in sbIPlaylistCommands aCommandObject)
Callback method when a Command Object is modified.
sbIPlaylistCommands request(in AString aContextGUID)
Request a copy of a published sbIPlaylistCommands interface.
AString getCommandShortcutKey(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the shortcut key of the requested command element index.
PRBool getCommandFlag(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the value of the flag for the requested command element index.
PRInt32 getCommandFlex(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the flex value for the requested command element index.
AString getCommandShortcutKeycode(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the shortcut keycode of the requested command element index.
AString getCommandValue(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the value of the requested command element index.
AString getCommandId(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the id string for the requested command element index.
The service used to register, unregister, and list playlist commands for a particular playlist guid o...
sbIPlaylistCommands getPlaylistCommandsMediaItem(in AString aContextGUID, in AString aPlaylistType)
Retrieve the root sbIPlaylistCommands object registered to a specific medialist guid or type...
AString getCommandType(in AString aSubMenu, in PRInt32 aIndex, in AString aHost)
Return the type of the requested command element index.
void refreshCustomCommand(in AString aSubMenu, in PRInt32 aIndex, in AString aHost, in AString aID, in nsIDOMNode aCustomCommandElement)
Refresh the custom element associated with the requested command.
attribute sbIPlaylistCommands parentCommandObject
The parent sbIPlaylistCommands of this object. The parentCommandObject is set by sbIPlaylistCommands...