|
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 __IEBGPSERVERSESSION_H__ |
|
19 #define __IEBGPSERVERSESSION_H__ |
|
20 |
|
21 // Include files |
|
22 #include <e32base.h> |
|
23 #include <e32cmn.h> |
|
24 |
|
25 #include <IEBgpsInfo.h> |
|
26 #include "IEFaceBrowser.h" |
|
27 |
|
28 |
|
29 class CIETNGeneratorAO; |
|
30 class MIEFaceBrowserObserver; |
|
31 |
|
32 class MIEThumbNailObserver |
|
33 { |
|
34 public: |
|
35 |
|
36 virtual void ThumbNailGenerationCompleted(TInt aError) = 0; |
|
37 //virtual void ThumbNailGenerationCompleted(TInt aError) = 0; |
|
38 }; |
|
39 |
|
40 |
|
41 |
|
42 class CIEBgpServerSession : public CSession2, |
|
43 public MIEThumbNailObserver, |
|
44 public MIEFaceBrowserObserver |
|
45 { |
|
46 public: |
|
47 static CIEBgpServerSession* NewL(RFs* aFileServer); |
|
48 ~CIEBgpServerSession(); |
|
49 |
|
50 private: |
|
51 void ConstructL(RFs* aFileServer); |
|
52 CIEBgpServerSession(); |
|
53 |
|
54 public: // From CSession2 |
|
55 void ServiceL(const RMessage2& aMessage); |
|
56 |
|
57 public: |
|
58 |
|
59 void ThumbNailGenerationCompleted(TInt aError); |
|
60 |
|
61 public: // From MIEFaceBrowserObserver |
|
62 void FaceBrowsingComplete(); |
|
63 void FaceBrowsingError(TInt aError); |
|
64 void FaceCroppingError(TInt aError); |
|
65 void FaceSingleFaceBrowsingComplete(); |
|
66 |
|
67 private: |
|
68 |
|
69 TBool iSingleTNGeneration; |
|
70 |
|
71 CFaceBrowser* iFaceBrowser; |
|
72 |
|
73 TInt iCount; |
|
74 TInt iImageCount; |
|
75 RArray<CImageData*> iImageArray; |
|
76 CIETNGeneratorAO *iIETNGeneratorAO; |
|
77 RMessage2 iMessage; |
|
78 |
|
79 TFileName iJpegFileName; |
|
80 TFileName iImagicThumbFileName; |
|
81 TSize iResolutionSize; |
|
82 CFbsBitmap* iSrcBitmap; |
|
83 |
|
84 |
|
85 }; |
|
86 |
|
87 #endif // __IEBGPSERVERSESSION_H__ |