#include <sbLocalDatabaseTreeView.h>
Public Member Functions | |
NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_NSIOBSERVER NS_DECL_NSITREEVIEW NS_DECL_SBILOCALDATABASEGUIDARRAYLISTENER NS_DECL_SBIMEDIALISTVIEWTREEVIEW NS_DECL_SBILOCALDATABASETREEVIEW NS_DECL_SBIMEDIACOREEVENTLISTENER NS_DECL_SBIMEDIALISTVIEWSELECTIONLISTENER NS_DECL_SBIPLAYQUEUESERVICELISTENER | sbLocalDatabaseTreeView () |
~sbLocalDatabaseTreeView () | |
nsresult | Init (sbLocalDatabaseMediaListView *aListView, sbILocalDatabaseGUIDArray *aArray, sbIPropertyArray *aCurrentSort, sbLocalDatabaseTreeViewState *aState) |
nsresult | Rebuild () |
void | SetShouldPreventRebuild (PRBool aShouldPreventRebuild) |
PRBool | GetShouldPreventRebuild () |
void | ClearMediaListView () |
nsresult | GetState (sbLocalDatabaseTreeViewState **aState) |
Public Member Functions inherited from sbSupportsWeakReference | |
sbSupportsWeakReference () | |
Public Member Functions inherited from sbILocalDatabaseGUIDArrayListener | |
void | onBeforeInvalidate (in boolean aInvalidateLength) |
Called before underlying GUID array is invalidated. More... | |
void | onAfterInvalidate () |
Called right after underlying GUID array is invalidated. More... | |
Public Member Functions inherited from sbIMediaListViewTreeView | |
long | getNextRowIndexForKeyNavigation (in AString aKeyString, in unsigned long aStartFrom) |
Calculates the first row index based on a series of keystrokes. More... | |
Public Member Functions inherited from sbILocalDatabaseTreeView | |
void | setSort (in AString aProperty, in boolean aDirection) |
void | invalidateRowsByGuid (in AString aGuid) |
void | setMouseState (in long aRow, in nsITreeColumn aColumn, in unsigned long aState) |
nsIStringEnumerator | getSelectedValues () |
Public Member Functions inherited from sbIMediacoreEventListener | |
void | onMediacoreEvent (in sbIMediacoreEvent aEvent) |
Public Member Functions inherited from sbIMediaListViewSelectionListener | |
void | onSelectionChanged () |
Called when the selection has changed. More... | |
void | onCurrentIndexChanged () |
Called when the current index of has changed. More... | |
Public Member Functions inherited from sbIPlayQueueServiceListener | |
void | onIndexUpdated (in unsigned long aToIndex) |
void | onQueueOperationStarted () |
fired when queue operation is started. More... | |
void | onQueueOperationCompleted () |
fired when queue operation is completed. More... | |
Protected Member Functions | |
nsresult | TokenizeProperties (const nsAString &aProperties, nsISupportsArray *aAtomArray) |
Parses a string and separates space-delimited substrings into nsIAtom elements. More... | |
nsresult | OnStop () |
nsresult | OnTrackChange () |
nsresult | OnTrackChange (sbIMediaListView *aView, PRUint32 aIndex) |
nsresult | OnTrackIndexChange (sbIMediacoreEvent *aEvent) |
Protected Member Functions inherited from sbSupportsWeakReference | |
~sbSupportsWeakReference () | |
void | ClearWeakReferences () |
PRBool | HasWeakReferences () const |
Friends | |
class | sbFilterTreeSelection |
class | sbPlaylistTreeSelection |
Additional Inherited Members | |
Public Attributes inherited from sbIMediaListViewTreeView | |
attribute sbIMediaListViewTreeViewObserver | observer |
Get and set an observer for this media list tree view. This observer must support nsIWeakReference. More... | |
Public Attributes inherited from sbILocalDatabaseTreeView | |
const unsigned long | MOUSE_STATE_NONE = 0 |
const unsigned long | MOUSE_STATE_HOVER = 1 |
const unsigned long | MOUSE_STATE_DOWN = 2 |
readonly attribute boolean | selectionIsAll |
Definition at line 79 of file sbLocalDatabaseTreeView.h.
sbIPlayQueueServiceListener sbLocalDatabaseTreeView::sbLocalDatabaseTreeView | ( | ) |
Definition at line 222 of file sbLocalDatabaseTreeView.cpp.
sbLocalDatabaseTreeView::~sbLocalDatabaseTreeView | ( | ) |
Definition at line 246 of file sbLocalDatabaseTreeView.cpp.
void sbLocalDatabaseTreeView::ClearMediaListView | ( | ) |
Definition at line 597 of file sbLocalDatabaseTreeView.cpp.
PRBool sbLocalDatabaseTreeView::GetShouldPreventRebuild | ( | ) |
Definition at line 591 of file sbLocalDatabaseTreeView.cpp.
nsresult sbLocalDatabaseTreeView::GetState | ( | sbLocalDatabaseTreeViewState ** | aState | ) |
Definition at line 1091 of file sbLocalDatabaseTreeView.cpp.
nsresult sbLocalDatabaseTreeView::Init | ( | sbLocalDatabaseMediaListView * | aListView, |
sbILocalDatabaseGUIDArray * | aArray, | ||
sbIPropertyArray * | aCurrentSort, | ||
sbLocalDatabaseTreeViewState * | aState | ||
) |
Definition at line 283 of file sbLocalDatabaseTreeView.cpp.
|
protected |
Definition at line 2677 of file sbLocalDatabaseTreeView.cpp.
|
protected |
Definition at line 2692 of file sbLocalDatabaseTreeView.cpp.
|
protected |
Definition at line 2719 of file sbLocalDatabaseTreeView.cpp.
|
protected |
Definition at line 2785 of file sbLocalDatabaseTreeView.cpp.
nsresult sbLocalDatabaseTreeView::Rebuild | ( | ) |
Definition at line 508 of file sbLocalDatabaseTreeView.cpp.
void sbLocalDatabaseTreeView::SetShouldPreventRebuild | ( | PRBool | aShouldPreventRebuild | ) |
Definition at line 585 of file sbLocalDatabaseTreeView.cpp.
|
protected |
Parses a string and separates space-delimited substrings into nsIAtom elements.
Shamelessly adapted from nsTreeUtils.cpp.
Definition at line 610 of file sbLocalDatabaseTreeView.cpp.
|
friend |
Definition at line 90 of file sbLocalDatabaseTreeView.h.
|
friend |
Definition at line 91 of file sbLocalDatabaseTreeView.h.