sbLocalDatabaseDiffingService.cpp File Reference
#include "sbLocalDatabaseDiffingService.h"
#include <vector>
#include <algorithm>
#include "sbLocalDatabaseCID.h"
#include <nsIAppStartupNotifier.h>
#include <nsICategoryManager.h>
#include <nsIClassInfoImpl.h>
#include <nsIURI.h>
#include <nsIMutableArray.h>
#include <nsIObserverService.h>
#include <nsIProgrammingLanguage.h>
#include <nsIStringEnumerator.h>
#include <sbIMediaListView.h>
#include <nsArrayUtils.h>
#include <nsComponentManagerUtils.h>
#include <nsDataHashtable.h>
#include <nsHashKeys.h>
#include <nsTHashtable.h>
#include <nsMemory.h>
#include <nsServiceManagerUtils.h>
#include <nsTArray.h>
#include <nsXPCOMCID.h>
#include <sbIndex.h>
#include <sbLibraryChangeset.h>
#include <sbLibraryUtils.h>
#include <sbPropertiesCID.h>
#include <sbStandardProperties.h>
#include <sbStringUtils.h>
Include dependency graph for sbLocalDatabaseDiffingService.cpp:

Go to the source code of this file.

Classes

class  sbLDBDSEnumerator
 
struct  sbLDBDSEnumerator::ItemInfo
 
class  sbLDBDSEnumerator::IDCompare
 
class  sbLDBDSEnumerator::OriginIDCompare
 
struct  EnumeratorArgs
 

Macros

#define TRACE(args)   PR_BEGIN_MACRO /* nothing */ PR_END_MACRO
 
#define LOG(args)   PR_BEGIN_MACRO /* nothing */ PR_END_MACRO
 

Functions

void LogMediaItem (char const *, sbIMediaItem *)
 
nsString sbGUIDToString (nsID const &aID)
 
nsID GetItemGUID (sbIMediaItem *aItem)
 
nsID GetGUIDProperty (sbIMediaItem *aItem, nsAString const &aProperty)
 
 NS_IMPL_THREADSAFE_ISUPPORTS1 (sbLDBDSEnumerator, sbIMediaListEnumerationListener) sbLDBDSEnumerator
 
NS_INTERFACE_MAP_END NS_IMPL_CI_INTERFACE_GETTER1 (sbLocalDatabaseDiffingService, sbILibraryDiffingService) sbLocalDatabaseDiffingService
 
template<class T , class M >
FindNextUsable (T aIter, T aEnd, M aMember)
 
static void MarkLists (sbLDBDSEnumerator *aSrc, sbLDBDSEnumerator *aDest)
 
nsresult AddUniqueItem (nsTHashtable< nsIDHashKey > &aItems, sbIMediaItem *aItem)
 

Variables

static nsID const NULL_GUID = {0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0 } }
 

Macro Definition Documentation

#define LOG (   args)    PR_BEGIN_MACRO /* nothing */ PR_END_MACRO

Definition at line 97 of file sbLocalDatabaseDiffingService.cpp.

#define TRACE (   args)    PR_BEGIN_MACRO /* nothing */ PR_END_MACRO

Definition at line 96 of file sbLocalDatabaseDiffingService.cpp.

Function Documentation

nsresult AddUniqueItem ( nsTHashtable< nsIDHashKey > &  aItems,
sbIMediaItem aItem 
)
inline

Definition at line 1344 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T , class M >
T FindNextUsable ( aIter,
aEnd,
aMember 
)

Definition at line 529 of file sbLocalDatabaseDiffingService.cpp.

Here is the caller graph for this function:

nsID GetGUIDProperty ( sbIMediaItem aItem,
nsAString const &  aProperty 
)

Definition at line 128 of file sbLocalDatabaseDiffingService.cpp.

Here is the caller graph for this function:

nsID GetItemGUID ( sbIMediaItem aItem)

Definition at line 115 of file sbLocalDatabaseDiffingService.cpp.

Here is the caller graph for this function:

void LogMediaItem ( char const *  ,
sbIMediaItem  
)
inline

Definition at line 99 of file sbLocalDatabaseDiffingService.cpp.

Here is the caller graph for this function:

static void MarkLists ( sbLDBDSEnumerator aSrc,
sbLDBDSEnumerator aDest 
)
static

Definition at line 549 of file sbLocalDatabaseDiffingService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

NS_INTERFACE_MAP_END NS_IMPL_CI_INTERFACE_GETTER1 ( sbLocalDatabaseDiffingService  ,
sbILibraryDiffingService   
)

Definition at line 490 of file sbLocalDatabaseDiffingService.cpp.

NS_IMPL_THREADSAFE_ISUPPORTS1 ( sbLDBDSEnumerator  ,
sbIMediaListEnumerationListener   
)

Definition at line 387 of file sbLocalDatabaseDiffingService.cpp.

nsString sbGUIDToString ( nsID const &  aID)

Definition at line 105 of file sbLocalDatabaseDiffingService.cpp.

Here is the caller graph for this function:

Variable Documentation

nsID const NULL_GUID = {0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0 } }
static

Definition at line 60 of file sbLocalDatabaseDiffingService.cpp.