sbPlaybackHistoryService.cpp File Reference
#include "sbPlaybackHistoryService.h"
#include <nsIArray.h>
#include <nsICategoryManager.h>
#include <nsIConverterInputStream.h>
#include <nsIInputStream.h>
#include <nsILocalFile.h>
#include <nsIMutableArray.h>
#include <nsIObserverService.h>
#include <nsIURL.h>
#include <nsIVariant.h>
#include <nsIWeakReferenceUtils.h>
#include <nsArrayUtils.h>
#include <nsAutoLock.h>
#include <nsCOMArray.h>
#include <nsComponentManagerUtils.h>
#include <nsNetUtil.h>
#include <nsThreadUtils.h>
#include <nsServiceManagerUtils.h>
#include <nsXPCOMCID.h>
#include <prprf.h>
#include <sbILibrary.h>
#include <sbILibraryManager.h>
#include <sbIMediacoreEvent.h>
#include <sbIMediacoreEventTarget.h>
#include <sbIMediacoreManager.h>
#include <sbIMediaList.h>
#include <sbIPlaybackHistoryEntry.h>
#include <sbIPropertyArray.h>
#include <sbIPropertyInfo.h>
#include <sbIPropertyManager.h>
#include <sbISQLBuilder.h>
#include <DatabaseQuery.h>
#include <sbArray.h>
#include <sbLibraryCID.h>
#include <sbPropertiesCID.h>
#include <sbStandardProperties.h>
#include <sbProxiedComponentManager.h>
#include <sbSQLBuilderCID.h>
#include <sbStringUtils.h>
#include <sbDebugUtils.h>
Include dependency graph for sbPlaybackHistoryService.cpp:

Go to the source code of this file.

Macros

#define NS_APPSTARTUP_CATEGORY   "app-startup"
 
#define NS_APPSTARTUP_TOPIC   "app-startup"
 
#define CONVERTER_BUFFER_SIZE   8192
 
#define PLAYBACKHISTORY_DB_GUID   "playbackhistory@songbirdnest.com"
 
#define SCHEMA_URL   "chrome://songbird/content/mediacore/playback/history/playbackhistoryservice.sql"
 
#define PLAYBACKHISTORY_ENTRIES_TABLE   "playback_history_entries"
 
#define PLAYBACKHISTORY_ANNOTATIONS_TABLE   "playback_history_entry_annotations"
 
#define PLAYBACKHISTORY_PROPERTIES_TABLE   "properties"
 
#define PLAYBACKHISTORY_COUNT_ENTRIES   "count(entry_id)"
 
#define ENTRY_ID_COLUMN   "entry_id"
 
#define LIBRARY_GUID_COLUMN   "library_guid"
 
#define MEDIA_ITEM_GUID_COLUMN   "media_item_guid"
 
#define PLAY_TIME_COLUMN   "play_time"
 
#define PLAY_DURATION_COLUMN   "play_duration"
 
#define ENTRY_ID_COLUMN   "entry_id"
 
#define PROPERTY_ID_COLUMN   "property_id"
 
#define PROPERTY_NAME_COLUMN   "property_name"
 
#define OBJ_COLUMN   "obj"
 
#define OBJ_SORTABLE   "obj_sortable"
 

Functions

static already_AddRefed
< nsILocalFile > 
GetDBFolder ()
 
 NS_IMPL_THREADSAFE_ISUPPORTS3 (sbPlaybackHistoryService, sbIPlaybackHistoryService, sbIMediacoreEventListener, nsIObserver) sbPlaybackHistoryService
 

Macro Definition Documentation

#define CONVERTER_BUFFER_SIZE   8192

Definition at line 79 of file sbPlaybackHistoryService.cpp.

#define ENTRY_ID_COLUMN   "entry_id"

Definition at line 96 of file sbPlaybackHistoryService.cpp.

#define ENTRY_ID_COLUMN   "entry_id"

Definition at line 96 of file sbPlaybackHistoryService.cpp.

#define LIBRARY_GUID_COLUMN   "library_guid"

Definition at line 91 of file sbPlaybackHistoryService.cpp.

#define MEDIA_ITEM_GUID_COLUMN   "media_item_guid"

Definition at line 92 of file sbPlaybackHistoryService.cpp.

#define NS_APPSTARTUP_CATEGORY   "app-startup"

Definition at line 76 of file sbPlaybackHistoryService.cpp.

#define NS_APPSTARTUP_TOPIC   "app-startup"

Definition at line 77 of file sbPlaybackHistoryService.cpp.

#define OBJ_COLUMN   "obj"

Definition at line 99 of file sbPlaybackHistoryService.cpp.

#define OBJ_SORTABLE   "obj_sortable"

Definition at line 100 of file sbPlaybackHistoryService.cpp.

#define PLAY_DURATION_COLUMN   "play_duration"

Definition at line 94 of file sbPlaybackHistoryService.cpp.

#define PLAY_TIME_COLUMN   "play_time"

Definition at line 93 of file sbPlaybackHistoryService.cpp.

#define PLAYBACKHISTORY_ANNOTATIONS_TABLE   "playback_history_entry_annotations"

Definition at line 86 of file sbPlaybackHistoryService.cpp.

#define PLAYBACKHISTORY_COUNT_ENTRIES   "count(entry_id)"

Definition at line 88 of file sbPlaybackHistoryService.cpp.

#define PLAYBACKHISTORY_DB_GUID   "playbackhistory@songbirdnest.com"

Definition at line 81 of file sbPlaybackHistoryService.cpp.

#define PLAYBACKHISTORY_ENTRIES_TABLE   "playback_history_entries"

Definition at line 85 of file sbPlaybackHistoryService.cpp.

#define PLAYBACKHISTORY_PROPERTIES_TABLE   "properties"

Definition at line 87 of file sbPlaybackHistoryService.cpp.

#define PROPERTY_ID_COLUMN   "property_id"

Definition at line 97 of file sbPlaybackHistoryService.cpp.

#define PROPERTY_NAME_COLUMN   "property_name"

Definition at line 98 of file sbPlaybackHistoryService.cpp.

#define SCHEMA_URL   "chrome://songbird/content/mediacore/playback/history/playbackhistoryservice.sql"

Definition at line 82 of file sbPlaybackHistoryService.cpp.

Function Documentation

static already_AddRefed<nsILocalFile> GetDBFolder ( )
static

Definition at line 106 of file sbPlaybackHistoryService.cpp.

Here is the caller graph for this function:

Definition at line 131 of file sbPlaybackHistoryService.cpp.