28 #include <nsServiceManagerUtils.h>
29 #include <nsXPCOMCID.h>
30 #include <nsILocalFile.h>
31 #include <nsStringAPI.h>
49 sbDirectoryProvider::~sbDirectoryProvider()
59 nsCOMPtr<nsIDirectoryService> dirService =
60 do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID,
62 NS_ENSURE_SUCCESS(rv, rv);
64 rv = dirService->RegisterProvider(
this);
65 NS_ENSURE_SUCCESS(rv, rv);
71 sbDirectoryProvider::GetFile(
const char *aProp,
76 NS_ENSURE_ARG_POINTER(aPersistent);
77 NS_ENSURE_ARG_POINTER(_retval);
79 nsCOMPtr<nsILocalFile> localFile;
80 nsresult rv = NS_ERROR_FAILURE;
83 *aPersistent = PR_TRUE;
106 if (NS_SUCCEEDED(rv)) {
108 rv = CallQueryInterface(localFile, _retval);
110 rv = NS_ERROR_FAILURE;
NS_IMPL_ISUPPORTS1(sbDeviceCapabilitiesUtils, sbIDeviceCapabilitiesUtils) sbDeviceCapabilitiesUtils
#define NS_WIN_COMMON_VIDEO
#define NS_WIN_COMMON_PICTURES
#define NS_WIN_COMMON_DOCUMENTS
#define NS_WIN_DISCBURNING
#define NS_WIN_COMMON_MUSIC
static nsresult GetWindowsFolder(int folder, nsILocalFile **aFile)