#include "sbLocalDatabaseLibraryFactory.h"
#include <nsIAppStartupNotifier.h>
#include <nsICategoryManager.h>
#include <nsIConverterInputStream.h>
#include <nsIFile.h>
#include <nsIIOService.h>
#include <nsILocalFile.h>
#include <nsIProperties.h>
#include <nsIPropertyBag2.h>
#include <nsIURI.h>
#include <nsIURL.h>
#include <nsIInputStream.h>
#include <nsIUnicharInputStream.h>
#include <nsIUUIDGenerator.h>
#include <nsIWritablePropertyBag2.h>
#include <sbIDatabaseResult.h>
#include <sbILibrary.h>
#include <sbILocalDatabasePropertyCache.h>
#include <sbISQLBuilder.h>
#include <DatabaseQuery.h>
#include <nsAutoPtr.h>
#include <nsComponentManagerUtils.h>
#include <nsNetUtil.h>
#include <nsServiceManagerUtils.h>
#include <nsWeakReference.h>
#include <nsXPCOMCID.h>
#include "sbLocalDatabaseCID.h"
#include "sbLocalDatabaseLibrary.h"
#include <sbSQLBuilderCID.h>
Go to the source code of this file.
#define CONVERTER_BUFFER_SIZE 8192 |
#define DEFAULT_LIBRARY_NAME NS_LITERAL_STRING("defaultlibrary.db") |
#define PERMISSIONS_DIRECTORY 0755 |
#define PERMISSIONS_FILE 0644 |
#define PROPERTY_KEY_DATABASEFILE "databaseFile" |
#define SB_NAMEKEY_LIBRARY "&chrome://songbird/locale/songbird.properties#servicesource.library" |
#define SB_PROPERTYBAG_CONTRACTID "@songbirdnest.com/moz/xpcom/sbpropertybag;1" |
#define SCHEMA_URL "chrome://songbird/content/library/localdatabase/schema.sql" |
static nsresult CreateDirectory |
( |
nsIFile * |
aDirectory | ) |
|
|
static |
static already_AddRefed<nsILocalFile> GetDBFolder |
( |
| ) |
|
|
static |
static PRBool IsDirectoryWritable |
( |
nsIFile * |
aDirectory | ) |
|
|
static |