sbLocalDatabaseAsyncGUIDArray Class Reference

#include <sbLocalDatabaseAsyncGUIDArray.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBILOCALDATABASEGUIDARRAY
NS_DECL_SBILOCALDATABASEASYNCGUIDARRAY
NS_DECL_NSIOBSERVER nsresult 
Init ()
 
nsresult InitalizeThread ()
 
nsresult ShutdownThread ()
 
nsresult EnqueueCommand (CommandType aType, PRUint32 aIndex)
 
 sbLocalDatabaseAsyncGUIDArray ()
 
virtual ~sbLocalDatabaseAsyncGUIDArray ()
 
- Public Member Functions inherited from sbILocalDatabaseAsyncGUIDArray
void addAsyncListener (in sbILocalDatabaseAsyncGUIDArrayListener aListener)
 
void removeAsyncListener (in sbILocalDatabaseAsyncGUIDArrayListener aListener)
 
void getLengthAsync ()
 
void getGuidByIndexAsync (in unsigned long aIndex)
 
void getSortPropertyValueByIndexAsync (in unsigned long aIndex)
 
void getMediaItemIdByIndexAsync (in unsigned long aIndex)
 
sbILocalDatabaseAsyncGUIDArray cloneAsyncArray ()
 
- Public Member Functions inherited from sbILocalDatabaseGUIDArray
void addSort (in AString aProperty, in boolean aAscending)
 
void clearSorts ()
 
void addFilter (in AString aProperty, in nsIStringEnumerator aValues, in boolean aIsSearch)
 
void clearFilters ()
 
boolean isIndexCached (in unsigned long aIndex)
 
AString getSortPropertyValueByIndex (in unsigned long aIndex)
 Return the sortable property value at the given index. More...
 
unsigned long getMediaItemIdByIndex (in unsigned long aIndex)
 Return the media item id at the given index. More...
 
AString getOrdinalByIndex (in unsigned long aIndex)
 Return the ordinal at the given index. More...
 
AString getGuidByIndex (in unsigned long aIndex)
 Return the guid at the given index. More...
 
unsigned long long getRowidByIndex (in unsigned long aIndex)
 Return the rowid at the given index. More...
 
AString getViewItemUIDByIndex (in unsigned long aIndex)
 Return the viewItemUID for the item at the given index. More...
 
void invalidate (in boolean aInvalidateLength)
 Invalidate the contents of the array. More...
 
sbILocalDatabaseGUIDArray clone ()
 
void cloneInto (in sbILocalDatabaseGUIDArray aDest)
 
void removeByIndex (in unsigned long aIndex)
 
unsigned long getFirstIndexByPrefix (in AString aPrefix)
 
unsigned long getFirstIndexByGuid (in AString aGuid)
 
unsigned long getIndexByViewItemUID (in AString aViewItemUID)
 
boolean containsGuid (in AString aGuid)
 Return true if the array contains the given GUID. May be forced to fetch and cache all items. More...
 
void suppressInvalidation (in boolean aSuppress)
 Counter based invalidation suppression. More...
 
void mayInvalidate ([array, size_is(aCount)] in unsigned long aDirtyPropertyIDs, in unsigned long aCount)
 Checks to see if the guid array needs to be invalidated and invalidates if needed. More...
 

Friends

class CommandProcessor
 

Additional Inherited Members

- Public Attributes inherited from sbILocalDatabaseGUIDArray
attribute AString databaseGUID
 
attribute nsIURI databaseLocation
 
attribute AString baseTable
 
attribute AString baseConstraintColumn
 
attribute unsigned long baseConstraintValue
 
attribute unsigned long fetchSize
 
attribute boolean isDistinct
 
readonly attribute boolean isValid
 
attribute boolean distinctWithSortableValues
 If the guid array is distinct, this value will cause the guid array to be filled with the sortable values instead of human redeable values. More...
 
readonly attribute unsigned long length
 
attribute
sbILocalDatabaseGUIDArrayListener 
listener
 
attribute
sbILocalDatabasePropertyCache 
propertyCache
 
attribute
sbILocalDatabaseGUIDArrayLengthCache 
lengthCache
 
readonly attribute sbIPropertyArray currentSort
 

Detailed Description

Definition at line 70 of file sbLocalDatabaseAsyncGUIDArray.h.

Constructor & Destructor Documentation

sbLocalDatabaseAsyncGUIDArray::sbLocalDatabaseAsyncGUIDArray ( )
sbLocalDatabaseAsyncGUIDArray::~sbLocalDatabaseAsyncGUIDArray ( )
virtual

Definition at line 81 of file sbLocalDatabaseAsyncGUIDArray.cpp.

Here is the call graph for this function:

Member Function Documentation

nsresult sbLocalDatabaseAsyncGUIDArray::EnqueueCommand ( CommandType  aType,
PRUint32  aIndex 
)

Definition at line 155 of file sbLocalDatabaseAsyncGUIDArray.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabaseAsyncGUIDArray::Init ( )

Definition at line 100 of file sbLocalDatabaseAsyncGUIDArray.cpp.

nsresult sbLocalDatabaseAsyncGUIDArray::InitalizeThread ( )

Definition at line 124 of file sbLocalDatabaseAsyncGUIDArray.cpp.

Here is the caller graph for this function:

nsresult sbLocalDatabaseAsyncGUIDArray::ShutdownThread ( )

Definition at line 135 of file sbLocalDatabaseAsyncGUIDArray.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class CommandProcessor
friend

Definition at line 75 of file sbLocalDatabaseAsyncGUIDArray.h.


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