sbLocalDatabaseLibraryLoader.cpp File Reference
#include "sbLocalDatabaseLibraryLoader.h"
#include <nsICategoryManager.h>
#include <nsIAppStartup.h>
#include <nsIFile.h>
#include <nsIGenericFactory.h>
#include <nsILocalFile.h>
#include <nsIObserverService.h>
#include <nsIIOService.h>
#include <nsIPrefBranch.h>
#include <nsIPrefService.h>
#include <nsIPromptService.h>
#include <nsIProperties.h>
#include <nsIPropertyBag2.h>
#include <nsIStringBundle.h>
#include <nsISupportsPrimitives.h>
#include <nsIURI.h>
#include <nsIURL.h>
#include <sbILibrary.h>
#include <sbIMediaList.h>
#include <nsAutoPtr.h>
#include <nsComponentManagerUtils.h>
#include <nsServiceManagerUtils.h>
#include <nsMemory.h>
#include <nsNetUtil.h>
#include <nsTHashtable.h>
#include <nsXPCOMCID.h>
#include <nsXPFEComponentsCID.h>
#include <prlog.h>
#include <sbLibraryManager.h>
#include <sbMemoryUtils.h>
#include <sbDebugUtils.h>
#include "sbLocalDatabaseCID.h"
#include "sbLocalDatabaseLibraryFactory.h"
#include <DatabaseQuery.h>
#include <sbIPropertyManager.h>
#include <sbPropertiesCID.h>
#include <sbStandardProperties.h>
#include <sbStringBundle.h>
Include dependency graph for sbLocalDatabaseLibraryLoader.cpp:

Go to the source code of this file.

Macros

#define PROPERTY_KEY_DATABASEFILE   "databaseFile"
 
#define NS_APPSTARTUP_CATEGORY   "app-startup"
 
#define NS_FINAL_UI_STARTUP_CATEGORY   "final-ui-startup"
 
#define PREFBRANCH_LOADER   SB_PREFBRANCH_LIBRARY "loader."
 
#define PREF_DATABASE_GUID   "databaseGUID"
 
#define PREF_DATABASE_LOCATION   "databaseLocation"
 
#define PREF_LOAD_AT_STARTUP   "loadAtStartup"
 
#define PREF_RESOURCE_GUID   "resourceGUID"
 
#define PREF_SUPPORT_INACCESSIBLE_LIBRARY   "songbird.url.support.inaccessiblelibrary"
 
#define MINIMUM_LIBRARY_COUNT   2
 
#define LOADERINFO_VALUE_COUNT   4
 
#define DBENGINE_GUID_MAIN_LIBRARY   "main@library.songbirdnest.com"
 
#define DBENGINE_GUID_WEB_LIBRARY   "web@library.songbirdnest.com"
 
#define DBENGINE_GUID_PLAYQUEUE_LIBRARY   "playqueue@library.songbirdnest.com"
 
#define SB_NAMEKEY_MAIN_LIBRARY   "&chrome://songbird/locale/songbird.properties#servicesource.library"
 
#define SB_NAMEKEY_WEB_LIBRARY   "&chrome://songbird/locale/songbird.properties#device.weblibrary"
 
#define SB_NAMEKEY_PLAYQUEUE_LIBRARY   "&chrome://songbird/locale/songbird.properties#playqueue.library"
 
#define SB_CUSTOMTYPE_MAIN_LIBRARY   "local"
 
#define SB_CUSTOMTYPE_WEB_LIBRARY   "web"
 
#define SB_CUSTOMTYPE_PLAYQUEUE_LIBRARY   "playqueue"
 
#define DEFAULT_COLUMNSPEC_WEB_LIBRARY
 

Macro Definition Documentation

#define DBENGINE_GUID_MAIN_LIBRARY   "main@library.songbirdnest.com"

Definition at line 97 of file sbLocalDatabaseLibraryLoader.cpp.

#define DBENGINE_GUID_PLAYQUEUE_LIBRARY   "playqueue@library.songbirdnest.com"

Definition at line 99 of file sbLocalDatabaseLibraryLoader.cpp.

#define DBENGINE_GUID_WEB_LIBRARY   "web@library.songbirdnest.com"

Definition at line 98 of file sbLocalDatabaseLibraryLoader.cpp.

#define DEFAULT_COLUMNSPEC_WEB_LIBRARY
Value:
NS_LL("http://songbirdnest.com/data/1.0#trackName 264 ") \
NS_LL("http://songbirdnest.com/data/1.0#duration 56 ") \
NS_LL("http://songbirdnest.com/data/1.0#artistName 209 ") \
NS_LL("http://songbirdnest.com/data/1.0#originPageImage 44 ") \
NS_LL("http://songbirdnest.com/data/1.0#created 119 d ") \
NS_LL("http://songbirdnest.com/data/1.0#downloadButton 83")

Definition at line 116 of file sbLocalDatabaseLibraryLoader.cpp.

#define LOADERINFO_VALUE_COUNT   4

Definition at line 93 of file sbLocalDatabaseLibraryLoader.cpp.

#define MINIMUM_LIBRARY_COUNT   2

Definition at line 92 of file sbLocalDatabaseLibraryLoader.cpp.

#define NS_APPSTARTUP_CATEGORY   "app-startup"

To log this module, set the following environment variable: NSPR_LOG_MODULES=sbLocalDatabaseLibraryLoader:5

Definition at line 78 of file sbLocalDatabaseLibraryLoader.cpp.

#define NS_FINAL_UI_STARTUP_CATEGORY   "final-ui-startup"

Definition at line 79 of file sbLocalDatabaseLibraryLoader.cpp.

#define PREF_DATABASE_GUID   "databaseGUID"

Definition at line 84 of file sbLocalDatabaseLibraryLoader.cpp.

#define PREF_DATABASE_LOCATION   "databaseLocation"

Definition at line 85 of file sbLocalDatabaseLibraryLoader.cpp.

#define PREF_LOAD_AT_STARTUP   "loadAtStartup"

Definition at line 86 of file sbLocalDatabaseLibraryLoader.cpp.

#define PREF_RESOURCE_GUID   "resourceGUID"

Definition at line 87 of file sbLocalDatabaseLibraryLoader.cpp.

#define PREF_SUPPORT_INACCESSIBLE_LIBRARY   "songbird.url.support.inaccessiblelibrary"

Definition at line 90 of file sbLocalDatabaseLibraryLoader.cpp.

#define PREFBRANCH_LOADER   SB_PREFBRANCH_LIBRARY "loader."

Definition at line 81 of file sbLocalDatabaseLibraryLoader.cpp.

#define PROPERTY_KEY_DATABASEFILE   "databaseFile"

Definition at line 71 of file sbLocalDatabaseLibraryLoader.cpp.

#define SB_CUSTOMTYPE_MAIN_LIBRARY   "local"

Definition at line 109 of file sbLocalDatabaseLibraryLoader.cpp.

#define SB_CUSTOMTYPE_PLAYQUEUE_LIBRARY   "playqueue"

Definition at line 113 of file sbLocalDatabaseLibraryLoader.cpp.

#define SB_CUSTOMTYPE_WEB_LIBRARY   "web"

Definition at line 111 of file sbLocalDatabaseLibraryLoader.cpp.

#define SB_NAMEKEY_MAIN_LIBRARY   "&chrome://songbird/locale/songbird.properties#servicesource.library"

Definition at line 102 of file sbLocalDatabaseLibraryLoader.cpp.

#define SB_NAMEKEY_PLAYQUEUE_LIBRARY   "&chrome://songbird/locale/songbird.properties#playqueue.library"

Definition at line 106 of file sbLocalDatabaseLibraryLoader.cpp.

#define SB_NAMEKEY_WEB_LIBRARY   "&chrome://songbird/locale/songbird.properties#device.weblibrary"

Definition at line 104 of file sbLocalDatabaseLibraryLoader.cpp.