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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 #ifndef CODECAPIRESOLVERUTILS_H
23 #define CODECAPIRESOLVERUTILS_H
28 Used to parse the opaque data of codec plugins.
30 class CCodecApiOpaqueData : public CBase
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 ();
42 CCodecApiOpaqueData(const TDesC8& aOpaqueData);
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);
50 const TDesC8& iOpaqueData;
52 HBufC8* iInputDataFormat;
53 HBufC8* iOutputDataFormat;
56 #endif // CODECAPIRESOLVERUTILS_H