First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This is the body of the MMF recognizer utility class
18 #ifndef __RECMMFUTILBODY_H__
19 #define __RECMMFUTILBODY_H__
21 #include "mmfcontrollerpluginresolver.h"
22 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
23 #include <mmf/common/taggeddataparser.h>
29 * Body of MMF utility class used by MMF recognizer
30 * Maintains an array of CMMFControllerImplementationInformation objects
31 * so that data headers can be speedily matched against.
32 * Updates the array when notified by ECOM of a change to the global
33 * interface implementation registration data.
35 NONSHARABLE_CLASS( CMmfRecognizerUtil::CBody ) : public CActive
38 static void GetMimeTypesL(CDesC8Array* aMimeTypes);
43 TMatchLevel GetMimeTypeL(const TDesC& aFileName, const TDesC8& aImageData, TDes8& aMimeType);
46 virtual void DoCancel();
52 void StartNotification();
53 void BuildControllerListL();
56 /** an array of pointers to CMMFControllerImplementationInformation objects */
57 RMMFControllerImplInfoArray iControllers;
58 /** for opening a session to the ECom server */
59 REComSession iEcomSession;