|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This is the body of the ICL recognizer utility class |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __RECICLUTILBODY_H__ |
|
19 #define __RECICLUTILBODY_H__ |
|
20 |
|
21 #include <ecom/implementationinformation.h> |
|
22 #include <ecom/ecom.h> |
|
23 #include "ImageConversion.h" |
|
24 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
25 #include <iclrecognizerutil.h> |
|
26 #endif |
|
27 |
|
28 /** |
|
29 * @internalComponent |
|
30 * |
|
31 * Body of ICL utility class used by ICL recognizer |
|
32 * Maintains an array of CImplementationInformation objects |
|
33 * so that data headers can be speedily matched against. |
|
34 * Updates the array when notified by ECOM of a change to the global |
|
35 * interface implementation registration data. |
|
36 * |
|
37 */ |
|
38 NONSHARABLE_CLASS( CIclRecognizerUtil::CBody ): public CActive |
|
39 { |
|
40 public: |
|
41 static CBody* NewL(); |
|
42 ~CBody(); |
|
43 TBool GetMimeTypeL(const TDesC8& aImageData, const TDesC& aFileName, TDes8& aMimeType); |
|
44 |
|
45 protected: |
|
46 virtual void DoCancel(); |
|
47 virtual void RunL(); |
|
48 |
|
49 private: |
|
50 CBody(); |
|
51 void ConstructL(); |
|
52 void StartNotification(); |
|
53 void BuildControllerListL(); |
|
54 |
|
55 private: |
|
56 /** an array of pointers to CImplementationInformation objects */ |
|
57 RImplInfoPtrArray iPluginArray; |
|
58 /** for opening a session to the ECom server */ |
|
59 REComSession iEcomSession; |
|
60 /** used when creating decoders */ |
|
61 RFs iFs; |
|
62 }; |
|
63 |
|
64 #endif |