os/mm/mmdevicefw/mdf/inc/codecapi/codecapiresolverutils.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 /**
    17  @file
    18  @publishedPartner
    19  @released
    20 */
    21 
    22 #ifndef CODECAPIRESOLVERUTILS_H
    23 #define CODECAPIRESOLVERUTILS_H
    24 
    25 #include <e32base.h>
    26 
    27 /**
    28  Used to parse the opaque data of codec plugins.
    29 */
    30 class CCodecApiOpaqueData : public CBase
    31 	{
    32 public:
    33 	IMPORT_C static CCodecApiOpaqueData* NewL(const TDesC8& aOpaqueData);
    34 	IMPORT_C static CCodecApiOpaqueData* NewLC(const TDesC8& aOpaqueData);
    35 	IMPORT_C TUid TypeUid() const;
    36 	IMPORT_C const TDesC8& InputDataType() const;
    37 	IMPORT_C const TDesC8& OutputDataType() const;	
    38 	IMPORT_C TBool CompareInputDataType(const TDesC8& aDataType);
    39 	IMPORT_C TBool CompareOutputDataType(const TDesC8& aDataType);
    40 	virtual ~CCodecApiOpaqueData ();
    41 protected:
    42 	CCodecApiOpaqueData(const TDesC8& aOpaqueData);
    43 	void ConstructL();
    44 	void SetMediaUidL(const TDesC8& aData);
    45 	void ParseTaggedDataL();
    46 	virtual void ProcessTaggedDataL(const TDesC8& aTag, const TDesC8& aData);
    47 	TUint ConvertTextToTUintL(const TDesC8& aData);
    48 	void ConvertTextToUidL(const TDesC8& aData, TUid& aUid);
    49 private:
    50 	const TDesC8& 	iOpaqueData;
    51 	TUid 			iTypeUid;
    52 	HBufC8* 		iInputDataFormat;
    53 	HBufC8* 		iOutputDataFormat;
    54 	};
    55 
    56 #endif  // CODECAPIRESOLVERUTILS_H