|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: Juha Kauppinen, Mika Hokkanen |
|
13 * |
|
14 * Description: Photo Browser |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __IEIMAGEFINDER_H_ |
|
19 #define __IEIMAGEFINDER_H_ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include <f32file.h> |
|
24 #include <IEEngine.h> |
|
25 #include <bautils.h> |
|
26 |
|
27 #include "IEFileLoader.h" |
|
28 #include "IEImageList.h" |
|
29 #include <ExifUtility.h> |
|
30 #include <ICLExif.h> |
|
31 #include "ImageMonitorAO.h" |
|
32 #include "IEEngineImp.h" |
|
33 |
|
34 #include <IEImageProcessing.h> |
|
35 #include <exifread.h> |
|
36 |
|
37 #include "IEEngineImp.h" |
|
38 #include "IEEngineUtils.h" |
|
39 #include "FileSystemMonitorAO.h" |
|
40 |
|
41 // FORWARD DECLARATIONS |
|
42 class CIEFileLoader; |
|
43 class CFileSystemMonitorAO; |
|
44 |
|
45 class CIEImageFinder : public CBase |
|
46 { |
|
47 public: |
|
48 static CIEImageFinder* NewL( |
|
49 CIEFileLoader* aCallback, |
|
50 RArray<CImageData*>& aFileNameData, |
|
51 RArray<CImageData*>& aFaceFileNameData, |
|
52 RCriticalSection* aCritical); |
|
53 |
|
54 static CIEImageFinder* NewLC( |
|
55 CIEFileLoader* aCallback, |
|
56 RArray<CImageData*>& aFileNameData, |
|
57 RArray<CImageData*>& aFaceFileNameData, |
|
58 RCriticalSection* aCritical); |
|
59 |
|
60 CIEImageFinder(CIEFileLoader* callback, |
|
61 RArray<CImageData*>& aFileNameData, |
|
62 RArray<CImageData*>& aFaceFileNameData, |
|
63 RCriticalSection* aCritical); |
|
64 void ConstructL(); |
|
65 ~CIEImageFinder(); |
|
66 void StartFinderL(const TDesC& aSearchName); |
|
67 void FileSystemChanged(); |
|
68 void SetImageDataChanged(); |
|
69 |
|
70 private: |
|
71 void ScanDirL(CDir* dir, const TDesC& aDir, const TDesC& aWild); |
|
72 void SearchFilesL(const TDesC& aSearchName); |
|
73 TInt CheckIfFileExist(TFileName& aFileName); |
|
74 float ReadAspectRatioL(TFileName& aFileName); |
|
75 void CheckCreatedThumbnails(CImageData& aImageData) const; |
|
76 void GetDatabaseFileName(TFileName & fileName) const; |
|
77 TBool IsSearching() const; |
|
78 |
|
79 private: |
|
80 //CFileSystemMonitorAO* iFileSystemMonitor; |
|
81 CIEImageList* iImageList; |
|
82 RFs iFileServer; |
|
83 CIEFileLoader* iCallback; |
|
84 CIEEngineUtils iIEEngineUtils; |
|
85 RArray<CImageData*>& iFileNameData; |
|
86 RArray<CImageData*>& iFaceFileNameData; |
|
87 RCriticalSection* iCritical; |
|
88 TExifReaderUtility* iExifReader; |
|
89 }; |
|
90 |
|
91 #endif //__IEIMAGEFINDER_H_ |
|
92 |
|
93 // End of File |