sbLocalDatabaseLibrary.h File Reference
#include <nsIObserver.h>
#include <sbIDatabaseQuery.h>
#include <sbILibrary.h>
#include <sbILocalDatabaseLibrary.h>
#include <sbILocalDatabaseSimpleMediaList.h>
#include "sbLocalDatabaseMediaListBase.h"
#include <sbProxiedComponentManager.h>
#include <prmon.h>
#include <nsAutoLock.h>
#include <nsClassHashtable.h>
#include <nsDataHashtable.h>
#include <nsCOMArray.h>
#include <nsCOMPtr.h>
#include <nsIClassInfo.h>
#include <nsInterfaceHashtable.h>
#include <nsIRunnable.h>
#include <nsIStreamListener.h>
#include <nsITimer.h>
#include <nsIThread.h>
#include <nsIThreadPool.h>
#include <nsIURI.h>
#include <nsStringGlue.h>
#include <nsVoidArray.h>
#include <sbIMediaListFactory.h>
#include <sbILibraryStatistics.h>
Include dependency graph for sbLocalDatabaseLibrary.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sbLocalDatabaseLibrary
 
class  sbLibraryInsertingEnumerationListener
 
class  sbLibraryRemovingEnumerationListener
 
class  sbBatchCreateTimerCallback
 
class  sbBatchCreateHelper
 
class  sbAutoSimpleMediaListBatchHelper
 

Macros

#define SB_DECL_MEDIALISTBASE_OVERRIDES
 
#define SB_DECL_SBIMEDIAITEM_OVERRIDES
 
#define SB_FORWARD_SBIMEDIAITEM(_to)
 
#define SB_FORWARD_SBIMEDIALIST(_to)
 

Typedefs

typedef nsCOMArray< sbIMediaItemsbMediaItemArray
 
typedef nsCOMArray< sbIMediaListsbMediaListArray
 
typedef nsClassHashtable
< nsISupportsHashKey,
sbMediaItemArray
sbMediaItemToListsMap
 
typedef nsDataHashtable
< nsStringHashKey, PRUint32 > 
sbListItemIndexMap
 
typedef nsInterfaceHashtableMT
< nsStringHashKey,
nsIWeakReference > 
sbGUIDToListMap
 

Macro Definition Documentation

#define SB_DECL_MEDIALISTBASE_OVERRIDES
Value:
NS_IMETHOD GetType(nsAString& aType); \
NS_IMETHOD GetItemByGuid(const nsAString& aGuid, sbIMediaItem** _retval); \
NS_IMETHOD Contains(sbIMediaItem* aMediaItem, PRBool* _retval); \
NS_IMETHOD Add(sbIMediaItem* aMediaItem); \
NS_IMETHOD AddItem(sbIMediaItem* aMediaItem, sbIMediaItem ** aNewMediaItem); \
NS_IMETHOD AddAll(sbIMediaList* aMediaList); \
NS_IMETHOD AddSome(nsISimpleEnumerator* aMediaItems); \
NS_IMETHOD AddMediaItems(nsISimpleEnumerator *aMediaItems, \
PRBool aAsync); \
NS_IMETHOD Remove(sbIMediaItem* aMediaItem); \
NS_IMETHOD RemoveByIndex(PRUint32 aIndex); \
NS_IMETHOD RemoveSome(nsISimpleEnumerator* aMediaItems); \
NS_IMETHOD Clear(); \
NS_IMETHOD CreateView(sbIMediaListViewState* aState, sbIMediaListView** _retval); \
/* nothing */
A brief description of the contents of this interface.
A distinct view on a given media list.
Saved state of a media list view.
Interface that defines a single item of media in the system.
restoreWindow aState

Definition at line 82 of file sbLocalDatabaseLibrary.h.

#define SB_DECL_SBIMEDIAITEM_OVERRIDES
Value:
NS_IMETHOD SetContentSrc(nsIURI* aContentSrc); \
/* nothing */

Definition at line 100 of file sbLocalDatabaseLibrary.h.

#define SB_FORWARD_SBIMEDIAITEM (   _to)
Value:
NS_IMETHOD GetLibrary(sbILibrary * *aLibrary) { return _to GetLibrary(aLibrary); } \
NS_IMETHOD GetIsMutable(PRBool *aIsMutable) { return _to GetIsMutable(aIsMutable); } \
NS_IMETHOD GetItemController(sbIMediaItemController **aMediaItemController) { return _to GetItemController(aMediaItemController); } \
NS_IMETHOD GetMediaCreated(PRInt64 *aMediaCreated) { return _to GetMediaCreated(aMediaCreated); } \
NS_IMETHOD SetMediaCreated(PRInt64 aMediaCreated) { return _to SetMediaCreated(aMediaCreated); } \
NS_IMETHOD GetMediaUpdated(PRInt64 *aMediaUpdated) { return _to GetMediaUpdated(aMediaUpdated); } \
NS_IMETHOD SetMediaUpdated(PRInt64 aMediaUpdated) { return _to SetMediaUpdated(aMediaUpdated); } \
NS_IMETHOD GetContentSrc(nsIURI **aContentSrc) { return _to GetContentSrc(aContentSrc); } \
NS_IMETHOD GetContentLength(PRInt64 *aContentLength) { return _to GetContentLength(aContentLength); } \
NS_IMETHOD SetContentLength(PRInt64 aContentLength) { return _to SetContentLength(aContentLength); } \
NS_IMETHOD GetContentType(nsAString & aContentType) { return _to GetContentType(aContentType); } \
NS_IMETHOD SetContentType(const nsAString & aContentType) { return _to SetContentType(aContentType); } \
NS_IMETHOD TestIsURIAvailable(nsIObserver *aObserver) { return _to TestIsURIAvailable(aObserver); } \
NS_IMETHOD OpenInputStreamAsync(nsIStreamListener *aListener, nsISupports *aContext, nsIChannel **_retval) { return _to OpenInputStreamAsync(aListener, aContext, _retval); } \
NS_IMETHOD OpenInputStream(nsIInputStream **_retval) { return _to OpenInputStream(_retval); } \
NS_IMETHOD OpenOutputStream(nsIOutputStream **_retval) { return _to OpenOutputStream(_retval); } \
NS_IMETHOD ToString(nsAString & _retval) { return _to ToString(_retval); }
static nsresult ToString(const nsDiscriminatedUnion &data, nsACString &outString)
Definition: sbVariant.cpp:861
const nsIChannel
Media library abstraction.
Definition: sbILibrary.idl:82
Interface that defines a mediaitem controller.

Definition at line 104 of file sbLocalDatabaseLibrary.h.

#define SB_FORWARD_SBIMEDIALIST (   _to)
Value:
NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
NS_IMETHOD GetIsEmpty(PRBool *aIsEmpty) { return _to GetIsEmpty(aIsEmpty); } \
NS_IMETHOD GetUserEditableContent(PRBool *aUserEditableContent) { return _to GetUserEditableContent(aUserEditableContent); } \
NS_IMETHOD GetItemByIndex(PRUint32 aIndex, sbIMediaItem **_retval) { return _to GetItemByIndex(aIndex, _retval); } \
NS_IMETHOD GetListContentType(PRUint16 *_retval) { return _to GetListContentType(_retval); } \
NS_IMETHOD EnumerateAllItems(sbIMediaListEnumerationListener *aEnumerationListener, PRUint16 aEnumerationType) { return _to EnumerateAllItems(aEnumerationListener, aEnumerationType); } \
NS_IMETHOD EnumerateItemsByProperty(const nsAString & aPropertyID, const nsAString & aPropertyValue, sbIMediaListEnumerationListener *aEnumerationListener, PRUint16 aEnumerationType) { return _to EnumerateItemsByProperty(aPropertyID, aPropertyValue, aEnumerationListener, aEnumerationType); } \
NS_IMETHOD EnumerateItemsByProperties(sbIPropertyArray *aProperties, sbIMediaListEnumerationListener *aEnumerationListener, PRUint16 aEnumerationType) { return _to EnumerateItemsByProperties(aProperties, aEnumerationListener, aEnumerationType); } \
NS_IMETHOD GetItemsByProperty(const nsAString & aPropertyID, const nsAString & aPropertyValue, nsIArray **_retval) { return _to GetItemsByProperty(aPropertyID, aPropertyValue, _retval); } \
NS_IMETHOD GetItemCountByProperty(const nsAString & aPropertyID, const nsAString & aPropertyValue, PRUint32 *_retval) { return _to GetItemCountByProperty(aPropertyID, aPropertyValue, _retval); } \
NS_IMETHOD GetItemsByProperties(sbIPropertyArray *aProperties, nsIArray **_retval) { return _to GetItemsByProperties(aProperties, _retval); } \
NS_IMETHOD IndexOf(sbIMediaItem *aMediaItem, PRUint32 aStartFrom, PRUint32 *_retval) { return _to IndexOf(aMediaItem, aStartFrom, _retval); } \
NS_IMETHOD LastIndexOf(sbIMediaItem *aMediaItem, PRUint32 aStartFrom, PRUint32 *_retval) { return _to LastIndexOf(aMediaItem, aStartFrom, _retval); } \
NS_IMETHOD AddListener(sbIMediaListListener *aListener, PRBool aOwnsWeak, PRUint32 aFlags, sbIPropertyArray *aPropertyFilter) { return _to AddListener(aListener, aOwnsWeak, aFlags, aPropertyFilter); } \
NS_IMETHOD RemoveListener(sbIMediaListListener *aListener) { return _to RemoveListener(aListener); } \
NS_IMETHOD RunInBatchMode(sbIMediaListBatchCallback *aCallback, nsISupports *aUserData) { return _to RunInBatchMode(aCallback, aUserData); } \
NS_IMETHOD GetDistinctValuesForProperty(const nsAString & aPropertyID, nsIStringEnumerator **_retval) { return _to GetDistinctValuesForProperty(aPropertyID, _retval); }
Interface used to enumerate the items in a media list.
Interface used to listen to changes to a media list.
_updateCookies aName
Interface that defines a single item of media in the system.
An interface to carry around arrays of nsIProperty instances. Users of this interface should only QI ...

Definition at line 123 of file sbLocalDatabaseLibrary.h.

Typedef Documentation

typedef nsInterfaceHashtableMT<nsStringHashKey, nsIWeakReference> sbGUIDToListMap

Definition at line 78 of file sbLocalDatabaseLibrary.h.

typedef nsDataHashtable<nsStringHashKey, PRUint32> sbListItemIndexMap

Definition at line 76 of file sbLocalDatabaseLibrary.h.

typedef nsCOMArray<sbIMediaItem> sbMediaItemArray

Definition at line 70 of file sbLocalDatabaseLibrary.h.

typedef nsClassHashtable<nsISupportsHashKey, sbMediaItemArray> sbMediaItemToListsMap

Definition at line 75 of file sbLocalDatabaseLibrary.h.

typedef nsCOMArray<sbIMediaList> sbMediaListArray

Definition at line 73 of file sbLocalDatabaseLibrary.h.