25 #ifndef SBDEVICEIMAGES_H_
26 #define SBDEVICEIMAGES_H_
36 #include "sbIDeviceImage.h"
50 nsIArray *aDeviceImageArray,
51 const nsTArray<nsString> &aFileExtensionList,
52 nsIArray **retCopyArray);
61 const nsTArray<nsString> &aFileExtensionList,
63 nsIArray **retImageArray);
78 PRBool aCreateDirectories,
90 AddLocalImages(nsIFile *baseDir,
92 const nsTArray<nsString> aFileExtensionList,
94 nsIMutableArray *localImageArray);
98 nsresult DiffImages(nsIMutableArray *diffResultsArray,
99 nsTArray< sbIDeviceImage* > &searchableImageArray,
100 nsIArray *searchItems);
103 nsresult ScanForImageFiles(nsIURI *aImageFilesPath,
104 const nsTArray<nsString> &aFileExtensionList,
116 NS_DECL_SBIDEVICEIMAGE
124 nsString mSubdirectory;
static nsresult GetImagesRootFolder(sbIDeviceLibrary *aDevLib, nsIFile **aFile)
friend class sbDeviceImages
PRBool Equals(const sbIDeviceImage *a, const sbIDeviceImage *b) const
nsresult ComputeImageSyncArray(sbIDeviceLibrary *aLibrary, nsIArray *aDeviceImageArray, const nsTArray< nsString > &aFileExtensionList, nsIArray **retCopyArray)
nsresult ScanImages(nsIFile *aScanDir, nsIFile *aBaseDir, const nsTArray< nsString > &aFileExtensionList, PRBool recursive, nsIArray **retImageArray)
NS_DECL_ISUPPORTS NS_DECL_SBIDEVICEIMAGE sbDeviceImage()
nsresult CreateTemporaryLocalMediaItem(sbIDeviceImage *aImage, sbIDeviceLibrary *aLibrary, sbIMediaItem **aMediaItem)
PRBool LessThan(const sbIDeviceImage *a, const sbIDeviceImage *b) const
nsresult MakeFile(sbIDeviceImage *aImage, nsIFile *aBaseDir, PRBool aWithFilename, PRBool aCreateDirectories, nsIFile **retFile)
An object to scan through the files of a folder (and optionally subfolders)