os/mm/mmdevicefw/mdf/inc/codecapi/codecapiresolverdata.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.
sl@0
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
/**
sl@0
    17
 @file
sl@0
    18
 @publishedPartner
sl@0
    19
 @released
sl@0
    20
*/
sl@0
    21
sl@0
    22
#ifndef CODECAPIRESOLVERDATA_H
sl@0
    23
#define CODECAPIRESOLVERDATA_H
sl@0
    24
sl@0
    25
#include <e32std.h>
sl@0
    26
sl@0
    27
/**
sl@0
    28
 Defines the type of matching that the resolver should perform 
sl@0
    29
*/
sl@0
    30
enum TCodecApiResolverMatchType
sl@0
    31
	{
sl@0
    32
	/**
sl@0
    33
	Resolver should match on input data format
sl@0
    34
	 */
sl@0
    35
	EMatchInputDataFormat,			
sl@0
    36
	/**
sl@0
    37
	Resolver should match on output data format
sl@0
    38
	 */
sl@0
    39
	EMatchOutputDataFormat,		
sl@0
    40
	/**
sl@0
    41
	Resolver should match on both input and output data format
sl@0
    42
	 */
sl@0
    43
	EMatchInputAndOutputDataFormat		
sl@0
    44
	};
sl@0
    45
sl@0
    46
/**
sl@0
    47
  Streaming class used to pass parameters from the Codec API to the resolver.
sl@0
    48
 */
sl@0
    49
class CCodecApiResolverData : public CBase
sl@0
    50
	{
sl@0
    51
public:
sl@0
    52
	IMPORT_C static CCodecApiResolverData* NewL();
sl@0
    53
	IMPORT_C static CCodecApiResolverData* NewL(const TDesC8& aPackage);
sl@0
    54
	IMPORT_C static CCodecApiResolverData* NewLC();
sl@0
    55
	IMPORT_C static CCodecApiResolverData* NewLC(const TDesC8& aPackage);
sl@0
    56
	IMPORT_C void SetMatchType(const TCodecApiResolverMatchType& aType);
sl@0
    57
	IMPORT_C void SetImplementationType(const TUid& aImplementationType);
sl@0
    58
	IMPORT_C void SetInputDataL(const TDesC8& aDataType);
sl@0
    59
	IMPORT_C void SetOutputDataL(const TDesC8& aDataType);
sl@0
    60
	IMPORT_C TCodecApiResolverMatchType MatchType() const;
sl@0
    61
	IMPORT_C TUid ImplementationType() const;
sl@0
    62
	IMPORT_C const TPtrC8 InputDataFormat() const;
sl@0
    63
	IMPORT_C const TPtrC8 OutputDataFormat() const;
sl@0
    64
	IMPORT_C HBufC8* NewPackLC() const;
sl@0
    65
	IMPORT_C void UnPackL(const TDesC8& aPackage);
sl@0
    66
	virtual ~CCodecApiResolverData();
sl@0
    67
private:
sl@0
    68
	void ConstructL(const TDesC8& aPackage);
sl@0
    69
	void ExternalizeL(RWriteStream& aStream) const;
sl@0
    70
	void InternalizeL(RReadStream& aStream);
sl@0
    71
	CCodecApiResolverData();
sl@0
    72
private:
sl@0
    73
	TCodecApiResolverMatchType	iMatchType;
sl@0
    74
	TUid 					iImplementationType;
sl@0
    75
	HBufC8* 				iInputDataFormat;
sl@0
    76
	HBufC8* 				iOutputDataFormat;
sl@0
    77
	}; 
sl@0
    78
sl@0
    79
#endif // CODECAPIRESOLVERDATA_H