os/mm/mmlibs/mmfw/src/ControllerFramework/RecMmfUtilBody.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // This is the body of the MMF recognizer utility class
    15 // 
    16 //
    17 
    18 #ifndef __RECMMFUTILBODY_H__
    19 #define __RECMMFUTILBODY_H__
    20 
    21 #include "mmfcontrollerpluginresolver.h"
    22 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    23 #include <mmf/common/taggeddataparser.h>
    24 #endif
    25 
    26 /**
    27  * @internalAll
    28  *
    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.
    34  */
    35 NONSHARABLE_CLASS( CMmfRecognizerUtil::CBody ) : public CActive
    36 	{
    37 public:
    38 	static void GetMimeTypesL(CDesC8Array* aMimeTypes);
    39 
    40 	static CBody* NewL();
    41 
    42 	~CBody();
    43 	TMatchLevel GetMimeTypeL(const TDesC& aFileName, const TDesC8& aImageData, 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 CMMFControllerImplementationInformation objects */
    57 	RMMFControllerImplInfoArray iControllers; 
    58 	/** for opening a session to the ECom server */
    59 	REComSession iEcomSession;
    60 
    61 	};
    62 
    63 #endif