sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: sl@0: #ifndef CODECAPIRESOLVERDATA_H sl@0: #define CODECAPIRESOLVERDATA_H sl@0: sl@0: #include sl@0: sl@0: /** sl@0: Defines the type of matching that the resolver should perform sl@0: */ sl@0: enum TCodecApiResolverMatchType sl@0: { sl@0: /** sl@0: Resolver should match on input data format sl@0: */ sl@0: EMatchInputDataFormat, sl@0: /** sl@0: Resolver should match on output data format sl@0: */ sl@0: EMatchOutputDataFormat, sl@0: /** sl@0: Resolver should match on both input and output data format sl@0: */ sl@0: EMatchInputAndOutputDataFormat sl@0: }; sl@0: sl@0: /** sl@0: Streaming class used to pass parameters from the Codec API to the resolver. sl@0: */ sl@0: class CCodecApiResolverData : public CBase sl@0: { sl@0: public: sl@0: IMPORT_C static CCodecApiResolverData* NewL(); sl@0: IMPORT_C static CCodecApiResolverData* NewL(const TDesC8& aPackage); sl@0: IMPORT_C static CCodecApiResolverData* NewLC(); sl@0: IMPORT_C static CCodecApiResolverData* NewLC(const TDesC8& aPackage); sl@0: IMPORT_C void SetMatchType(const TCodecApiResolverMatchType& aType); sl@0: IMPORT_C void SetImplementationType(const TUid& aImplementationType); sl@0: IMPORT_C void SetInputDataL(const TDesC8& aDataType); sl@0: IMPORT_C void SetOutputDataL(const TDesC8& aDataType); sl@0: IMPORT_C TCodecApiResolverMatchType MatchType() const; sl@0: IMPORT_C TUid ImplementationType() const; sl@0: IMPORT_C const TPtrC8 InputDataFormat() const; sl@0: IMPORT_C const TPtrC8 OutputDataFormat() const; sl@0: IMPORT_C HBufC8* NewPackLC() const; sl@0: IMPORT_C void UnPackL(const TDesC8& aPackage); sl@0: virtual ~CCodecApiResolverData(); sl@0: private: sl@0: void ConstructL(const TDesC8& aPackage); sl@0: void ExternalizeL(RWriteStream& aStream) const; sl@0: void InternalizeL(RReadStream& aStream); sl@0: CCodecApiResolverData(); sl@0: private: sl@0: TCodecApiResolverMatchType iMatchType; sl@0: TUid iImplementationType; sl@0: HBufC8* iInputDataFormat; sl@0: HBufC8* iOutputDataFormat; sl@0: }; sl@0: sl@0: #endif // CODECAPIRESOLVERDATA_H