imagingandcamerafws/imagingfws/ImageDisplay/src/ImageDisplayRecognizer.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2005-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 //
       
    15 
       
    16 #ifndef IMAGEDISPLAYRECOGNIZER_H
       
    17 #define IMAGEDISPLAYRECOGNIZER_H
       
    18 
       
    19 #include <imageconversion.h>
       
    20 
       
    21 /** @file
       
    22 	@internalComponent */
       
    23 
       
    24 /**
       
    25 @internalComponent
       
    26 
       
    27 Utility class providing Mime type recognition based on file 
       
    28 extension or image data using information provided in the plug-in
       
    29 opaque data - file extension/identification string
       
    30 */
       
    31 NONSHARABLE_CLASS( CImgDisplayMimeTypeRecognizer ) : public CBase
       
    32 	{
       
    33 	
       
    34 public:
       
    35 	IMPORT_C static CImgDisplayMimeTypeRecognizer* NewL();
       
    36 
       
    37 	~CImgDisplayMimeTypeRecognizer();
       
    38 	IMPORT_C TBool GetMimeTypeL(const TDesC8& aImageData, const TDesC& aFileName, TDes8& aMimeType);
       
    39 	IMPORT_C void GetFileTypesL(RFileExtensionMIMETypeArray& aExtArray);
       
    40 	
       
    41 private:
       
    42 	CImgDisplayMimeTypeRecognizer();
       
    43 	void ConstructL();
       
    44 	void GetTypeByFileNameL(const TDesC& aFileName,TDes8& aMimeType);
       
    45 	
       
    46 private:
       
    47 	class CBody;
       
    48 	CBody* iBody;	
       
    49 	};
       
    50 
       
    51 
       
    52 #endif //ndef IMAGEDISPLAYRECOGNIZER_H
       
    53 
       
    54