sbLocalDatabaseMediaListViewSelection Class Reference

#include <sbLocalDatabaseMediaListViewSelection.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIMEDIALISTVIEWSELECTION 
sbLocalDatabaseMediaListViewSelection ()
 
nsresult Init (sbILibrary *aLibrary, const nsAString &aListGUID, sbILocalDatabaseGUIDArray *aArray, PRBool aIsLibrary, sbLocalDatabaseMediaListViewSelectionState *aState)
 
nsresult ConfigurationChanged ()
 
nsresult GetState (sbLocalDatabaseMediaListViewSelectionState **aState)
 
- Public Member Functions inherited from sbIMediaListViewSelection
boolean isIndexSelected (in long aIndex)
 Indicates whether or not the item at the specified index is part of the selection. More...
 
boolean isContentTypeSelected (in AString aContentType)
 Indicates whether or not any item with the specified content type is selected. More...
 
void select (in long aIndex)
 Select the item at the given index. More...
 
void selectOnly (in long aIndex)
 Select only the item at the given index, all others will be deselected. More...
 
void timedSelectOnly (in long aIndex, in long aDelay)
 Same as selectOnly but notifies listeners after a delay (analogous to nsITreeSelection.timedSelect()). More...
 
void toggle (in long aIndex)
 Toggle the selection state of the item at the given index. More...
 
void clear (in long aIndex)
 Unselect the item at the given index. More...
 
void selectRange (in long aStartIndex, in long aEndIndex)
 Select the range specified by the indices. More...
 
void clearRange (in long aStartIndex, in long aEndIndex)
 Clear the specified range. More...
 
void selectNone ()
 Clears the selection. More...
 
void selectAll ()
 Selects all items. More...
 
void addListener (in sbIMediaListViewSelectionListener aListener)
 Add a listener to the selection. It will be notified when the selection or current index changes. More...
 
void removeListener (in sbIMediaListViewSelectionListener aListener)
 Remove a listener from the selection. More...
 

Additional Inherited Members

- Public Attributes inherited from sbIMediaListViewSelection
readonly attribute long count
 The number of selected items. More...
 
attribute long currentIndex
 The index of the current media item. More...
 
readonly attribute sbIMediaItem currentMediaItem
 The current media item. More...
 
readonly attribute
nsISimpleEnumerator 
selectedIndexedMediaItems
 Get an enumerator of all the selected media items. The elements contained in the enumerator implement sbIIndexedMediaItem which allows the consumer of the enumerator to know the item and the index of the item. More...
 
readonly attribute
nsISimpleEnumerator 
selectedMediaItems
 Get an enumertaor of all the selected media items. The elements contained in the enumerator implement sbIMediaItem. This differs from selectedIndexedMediaItems in that there is no indices involved. More...
 
attribute boolean selectionNotificationsSuppressed
 When set to true, notifications are not sent to the listeners. More...
 

Detailed Description

Definition at line 48 of file sbLocalDatabaseMediaListViewSelection.h.

Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_SBIMEDIALISTVIEWSELECTION sbLocalDatabaseMediaListViewSelection::sbLocalDatabaseMediaListViewSelection ( )

Member Function Documentation

nsresult sbLocalDatabaseMediaListViewSelection::ConfigurationChanged ( )

Definition at line 121 of file sbLocalDatabaseMediaListViewSelection.cpp.

nsresult sbLocalDatabaseMediaListViewSelection::GetState ( sbLocalDatabaseMediaListViewSelectionState **  aState)

Definition at line 145 of file sbLocalDatabaseMediaListViewSelection.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabaseMediaListViewSelection::Init ( sbILibrary aLibrary,
const nsAString &  aListGUID,
sbILocalDatabaseGUIDArray aArray,
PRBool  aIsLibrary,
sbLocalDatabaseMediaListViewSelectionState aState 
)

Definition at line 87 of file sbLocalDatabaseMediaListViewSelection.cpp.

Here is the call graph for this function:


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