|
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 __IEENGINEUTILS__ |
|
19 #define __IEENGINEUTILS__ |
|
20 |
|
21 #include <f32file.h> |
|
22 #include <f32file.h> |
|
23 #include <e32base.h> |
|
24 //#include "IEImageData.h" |
|
25 #include "IEImage.h" |
|
26 |
|
27 class CIEEngineUtils: public CBase |
|
28 { |
|
29 public: |
|
30 /* |
|
31 * Symbian First phase constructor |
|
32 * |
|
33 * @aParam aFs - FileServer |
|
34 */ |
|
35 IMPORT_C CIEEngineUtils(RFs &aFs); |
|
36 |
|
37 /* |
|
38 * Destructor. |
|
39 * |
|
40 */ |
|
41 IMPORT_C ~CIEEngineUtils(); |
|
42 public: |
|
43 /* |
|
44 * GenerateIEThumbNailPath depending on the resolution |
|
45 * |
|
46 * @aParam aTNResolution - Thumbnail resolution |
|
47 * @aParam aIETNFileName - IEFilename |
|
48 */ |
|
49 IMPORT_C static void GenerateThumbnailFileName(TThumbSize aResolution, const TDesC& aFileName, TDes& aThumbnailFileName); |
|
50 IMPORT_C static void DeleteThumbnails(TDesC& aFileName, RFs& aFs); |
|
51 |
|
52 /* |
|
53 * Create TN folder |
|
54 * |
|
55 * @aParam aTNPath - Thumbnail path |
|
56 * @return - systemwide error code. |
|
57 */ |
|
58 IMPORT_C static TInt CreateTNFolder(RFs aFs, const TDesC& aTNPath); |
|
59 IMPORT_C static void PrivatePath(TFileName& aFileName); |
|
60 |
|
61 IMPORT_C TInt AddFaceCoordinate(const TFileName a128x128TNFileName, RArray<TRect>& aCordArray); |
|
62 IMPORT_C TInt RemoveFaceCoordinate(const TFileName a128x128TNFileName, RArray<TRect>& aCordArray); |
|
63 IMPORT_C HBufC8* ReadExifMakerNoteL(const TDes &aFileName); |
|
64 IMPORT_C void ReadFaceCoordinatesL(const TFileName a128x128TNFileName, RArray<TRect>& aCordArray); |
|
65 IMPORT_C void WriteFaceCoordinatesL(const TFileName a128x128TNFileName, RArray<TRect>& aCordArray); |
|
66 IMPORT_C void GetModifiedTimeL(const TDes &aFileName, TTime& aTime); |
|
67 IMPORT_C void GetImageSizeL(const TDes &aFileName, TSize& aSize); |
|
68 IMPORT_C static HBufC8* ReadExifThumbnailL(RFs& aFs, const TDesC& aFileName); |
|
69 //void ReadFile2BuffL(const TDes &aFileName, HBufC8** buffer); |
|
70 //TPtr8 LoadImageIntoMemoryLC(const TDesC& aFileName); |
|
71 IMPORT_C void GetExifDateTimeAndOrientationL(const TDesC& aFilename, TTime& aExifDateTime, TUint16& aOrientation); |
|
72 IMPORT_C static TUid GetImageDecoderUid(); |
|
73 |
|
74 private: |
|
75 IMPORT_C static HBufC8* ReadExifHeaderL(RFs& aFs, const TDesC& aFileName); |
|
76 |
|
77 RFs& iFs; |
|
78 }; |
|
79 #endif /*__IEENGINEUTILS__*/ |