sbLocalDatabaseSimpleMediaList.cpp File Reference
#include "sbLocalDatabaseSimpleMediaList.h"
#include <nsIArray.h>
#include <nsIClassInfoImpl.h>
#include <nsIMutableArray.h>
#include <nsIProgrammingLanguage.h>
#include <nsISimpleEnumerator.h>
#include <nsIURI.h>
#include <sbIDatabaseQuery.h>
#include <sbIDatabaseResult.h>
#include <sbILibrary.h>
#include <sbILocalDatabaseGUIDArray.h>
#include <sbILocalDatabasePropertyCache.h>
#include <sbIMediaListView.h>
#include <sbISQLBuilder.h>
#include "sbLocalDatabaseCID.h"
#include "sbLocalDatabaseLibrary.h"
#include "sbLocalDatabaseGUIDArray.h"
#include "sbMediaListEnumSingleItemHelper.h"
#include <DatabaseQuery.h>
#include <nsArrayUtils.h>
#include <nsAutoLock.h>
#include <nsAutoPtr.h>
#include <nsCOMPtr.h>
#include <nsComponentManagerUtils.h>
#include <nsMemory.h>
#include <nsXPCOMCID.h>
#include <pratom.h>
#include <sbLocalDatabaseMediaListView.h>
#include <sbStandardProperties.h>
#include <sbStringUtils.h>
#include <sbSQLBuilderCID.h>
Include dependency graph for sbLocalDatabaseSimpleMediaList.cpp:

Go to the source code of this file.

Classes

class  sbAddSomeEnumListener
 
class  sbLocalDatabaseSimpleMediaListAddSomeAsyncRunner
 

Macros

#define DEFAULT_SORT_PROPERTY   NS_LITERAL_STRING(SB_PROPERTY_ORDINAL)
 
#define DEFAULT_FETCH_SIZE   1000
 
#define TRACE(args)   PR_LOG(gLocalDatabaseSimpleMediaListLog, PR_LOG_DEBUG, args)
 
#define LOG(args)   PR_LOG(gLocalDatabaseSimpleMediaListLog, PR_LOG_WARN, args)
 
#define ASSERT_LIST_IS_LIBRARY(_mediaList)   PR_BEGIN_MACRO /* nothing */ PR_END_MACRO
 
#define SB_ENSURE_INDEX_BEGIN
 
#define SB_ENSURE_INDEX_END   PR_END_MACRO
 
#define SB_ENSURE_INDEX1(_index)
 
#define SB_ENSURE_INDEX2(_index1, _index2)
 

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS1 (sbAddSomeEnumListener, sbIAddMediaItemsListener)
 
 NS_IMPL_THREADSAFE_ISUPPORTS1 (sbLocalDatabaseSimpleMediaListAddSomeAsyncRunner, nsIRunnable)
 
 NS_IMPL_QUERY_INTERFACE1 (sbSimpleMediaListInsertingEnumerationListener, sbIMediaListEnumerationListener) NS_IMETHODIMP sbSimpleMediaListInsertingEnumerationListener
 
 NS_IMPL_QUERY_INTERFACE1 (sbSimpleMediaListRemovingEnumerationListener, sbIMediaListEnumerationListener) NS_IMETHODIMP sbSimpleMediaListRemovingEnumerationListener
 
 NS_IMPL_ISUPPORTS_INHERITED3 (sbLocalDatabaseSimpleMediaList, sbLocalDatabaseMediaListBase, nsIClassInfo, sbIOrderableMediaList, sbILocalDatabaseSimpleMediaList) NS_IMPL_CI_INTERFACE_GETTER7(sbLocalDatabaseSimpleMediaList
 

Variables

 nsIClassInfo
 
 nsISupportsWeakReference
 
 sbILibraryResource
 
 sbIMediaItem
 
 sbIMediaList
 
 sbILocalDatabaseSimpleMediaList
 
 sbIOrderableMediaList
 

Macro Definition Documentation

#define ASSERT_LIST_IS_LIBRARY (   _mediaList)    PR_BEGIN_MACRO /* nothing */ PR_END_MACRO

Definition at line 93 of file sbLocalDatabaseSimpleMediaList.cpp.

#define DEFAULT_FETCH_SIZE   1000

Definition at line 62 of file sbLocalDatabaseSimpleMediaList.cpp.

#define DEFAULT_SORT_PROPERTY   NS_LITERAL_STRING(SB_PROPERTY_ORDINAL)

Definition at line 61 of file sbLocalDatabaseSimpleMediaList.cpp.

#define LOG (   args)    PR_LOG(gLocalDatabaseSimpleMediaListLog, PR_LOG_WARN, args)

Definition at line 73 of file sbLocalDatabaseSimpleMediaList.cpp.

#define SB_ENSURE_INDEX1 (   _index)
Value:
SB_ENSURE_INDEX_BEGIN \
NS_ENSURE_ARG_MAX(_index, length - 1); \
#define SB_ENSURE_INDEX_END

Definition at line 107 of file sbLocalDatabaseSimpleMediaList.cpp.

#define SB_ENSURE_INDEX2 (   _index1,
  _index2 
)
Value:
SB_ENSURE_INDEX_BEGIN \
NS_ENSURE_ARG_MAX(_index1, length - 1); \
NS_ENSURE_ARG_MAX(_index2, length - 1); \
#define SB_ENSURE_INDEX_END

Definition at line 112 of file sbLocalDatabaseSimpleMediaList.cpp.

#define SB_ENSURE_INDEX_BEGIN
Value:
PR_BEGIN_MACRO \
nsresult rv; \
PRUint32 length; \
rv = GetArray()->GetLength(&length); \
NS_ENSURE_SUCCESS(rv, rv);

Definition at line 97 of file sbLocalDatabaseSimpleMediaList.cpp.

#define SB_ENSURE_INDEX_END   PR_END_MACRO

Definition at line 104 of file sbLocalDatabaseSimpleMediaList.cpp.

#define TRACE (   args)    PR_LOG(gLocalDatabaseSimpleMediaListLog, PR_LOG_DEBUG, args)

To log this class, set the following environment variable: NSPR_LOG_MODULES=sbLocalDatabaseSimpleMediaList:5

Definition at line 72 of file sbLocalDatabaseSimpleMediaList.cpp.

Function Documentation

NS_IMPL_THREADSAFE_ISUPPORTS1 ( sbAddSomeEnumListener  ,
sbIAddMediaItemsListener   
)
NS_IMPL_THREADSAFE_ISUPPORTS1 ( sbLocalDatabaseSimpleMediaListAddSomeAsyncRunner  ,
nsIRunnable   
)

Variable Documentation

nsIClassInfo

Definition at line 787 of file sbLocalDatabaseSimpleMediaList.cpp.

nsISupportsWeakReference

Definition at line 787 of file sbLocalDatabaseSimpleMediaList.cpp.