Songbird DeviceBase Component Implementation. More...
#include "DeviceBase.h"#include "sbIDeviceBase.h"#include <nsAppDirectoryServiceDefs.h>#include <nsAutoLock.h>#include <nsAutoPtr.h>#include <nsCOMArray.h>#include <nsCRTGlue.h>#include <nsComponentManagerUtils.h>#include <nsDirectoryServiceUtils.h>#include <nsIFileURL.h>#include <nsIIOService.h>#include <nsILocalFile.h>#include <nsIProxyObjectManager.h>#include <nsIURI.h>#include <nsIURIFixup.h>#include <nsIWritablePropertyBag2.h>#include <nsMemory.h>#include <nsProxyRelease.h>#include <nsServiceManagerUtils.h>#include <nsStringGlue.h>#include <nsThreadUtils.h>#include <nsUnicharUtils.h>#include <nsXPCOM.h>#include <sbILibraryFactory.h>#include <sbILibraryManager.h>#include <sbIPropertyArray.h>#include <sbLocalDatabaseCID.h>#include <sbStandardProperties.h>Go to the source code of this file.
Macros | |
| #define | MSG_DEVICE_BASE (0x2000) |
| #define | MSG_DEVICE_TRANSFER (MSG_DEVICE_BASE + 0) |
| #define | MSG_DEVICE_UPLOAD (MSG_DEVICE_BASE + 1) |
| #define | MSG_DEVICE_DELETE (MSG_DEVICE_BASE + 2) |
| #define | MSG_DEVICE_UPDATE_METADATA (MSG_DEVICE_BASE + 3) |
| #define | MSG_DEVICE_EVENT (MSG_DEVICE_BASE + 4) |
| #define | MSG_DEVICE_INITIALIZE (MSG_DEVICE_BASE + 5) |
| #define | MSG_DEVICE_FINALIZE (MSG_DEVICE_BASE + 6) |
| #define | MSG_DEVICE_EJECT (MSG_DEVICE_BASE + 7) |
| #define | TRANSFER_TABLE_NAME NS_LITERAL_STRING("Transfer") |
| #define | URL_COLUMN_NAME NS_LITERAL_STRING("url") |
| #define | SOURCE_COLUMN_NAME NS_LITERAL_STRING("source") |
| #define | DESTINATION_COLUMN_NAME NS_LITERAL_STRING("destination") |
| #define | INDEX_COLUMN_NAME NS_LITERAL_STRING("id") |
| #define | TRACE(args) /* nothing */ |
| #define | LOG(args) /* nothing */ |
Functions | |
| void | ReplaceChars (nsAString &aOldString, const nsAString &aOldChars, const PRUnichar aNewChar) |
| void | ReplaceChars (nsACString &aOldString, const nsACString &aOldChars, const char aNewChar) |
| NS_IMPL_THREADSAFE_ISUPPORTS1 (sbDeviceBaseLibraryListener, sbIMediaListListener) | |
| NS_IMPL_THREADSAFE_ISUPPORTS1 (sbDeviceBaseLibraryCopyListener, sbILocalDatabaseMediaListCopyListener) | |
| EnumDeviceCallback (nsISupports *key, sbDeviceBaseCallbackProxy *data, void *closure) | |
Songbird DeviceBase Component Implementation.
Definition in file DeviceBase.cpp.
| #define DESTINATION_COLUMN_NAME NS_LITERAL_STRING("destination") |
Definition at line 77 of file DeviceBase.cpp.
| #define INDEX_COLUMN_NAME NS_LITERAL_STRING("id") |
Definition at line 78 of file DeviceBase.cpp.
| #define LOG | ( | args | ) | /* nothing */ |
Definition at line 90 of file DeviceBase.cpp.
| #define MSG_DEVICE_BASE (0x2000) |
Definition at line 63 of file DeviceBase.cpp.
| #define MSG_DEVICE_DELETE (MSG_DEVICE_BASE + 2) |
Definition at line 67 of file DeviceBase.cpp.
| #define MSG_DEVICE_EJECT (MSG_DEVICE_BASE + 7) |
Definition at line 72 of file DeviceBase.cpp.
| #define MSG_DEVICE_EVENT (MSG_DEVICE_BASE + 4) |
Definition at line 69 of file DeviceBase.cpp.
| #define MSG_DEVICE_FINALIZE (MSG_DEVICE_BASE + 6) |
Definition at line 71 of file DeviceBase.cpp.
| #define MSG_DEVICE_INITIALIZE (MSG_DEVICE_BASE + 5) |
Definition at line 70 of file DeviceBase.cpp.
| #define MSG_DEVICE_TRANSFER (MSG_DEVICE_BASE + 0) |
Definition at line 65 of file DeviceBase.cpp.
| #define MSG_DEVICE_UPDATE_METADATA (MSG_DEVICE_BASE + 3) |
Definition at line 68 of file DeviceBase.cpp.
| #define MSG_DEVICE_UPLOAD (MSG_DEVICE_BASE + 1) |
Definition at line 66 of file DeviceBase.cpp.
| #define SOURCE_COLUMN_NAME NS_LITERAL_STRING("source") |
Definition at line 76 of file DeviceBase.cpp.
| #define TRACE | ( | args | ) | /* nothing */ |
Definition at line 89 of file DeviceBase.cpp.
| #define TRANSFER_TABLE_NAME NS_LITERAL_STRING("Transfer") |
Definition at line 74 of file DeviceBase.cpp.
| #define URL_COLUMN_NAME NS_LITERAL_STRING("url") |
Definition at line 75 of file DeviceBase.cpp.
| EnumDeviceCallback | ( | nsISupports * | key, |
| sbDeviceBaseCallbackProxy * | data, | ||
| void * | closure | ||
| ) |
| NS_IMPL_THREADSAFE_ISUPPORTS1 | ( | sbDeviceBaseLibraryListener | , |
| sbIMediaListListener | |||
| ) |
| NS_IMPL_THREADSAFE_ISUPPORTS1 | ( | sbDeviceBaseLibraryCopyListener | , |
| sbILocalDatabaseMediaListCopyListener | |||
| ) |
| void ReplaceChars | ( | nsAString & | aOldString, |
| const nsAString & | aOldChars, | ||
| const PRUnichar | aNewChar | ||
| ) |
| void ReplaceChars | ( | nsACString & | aOldString, |
| const nsACString & | aOldChars, | ||
| const char | aNewChar | ||
| ) |
Definition at line 109 of file DeviceBase.cpp.