1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/sounddevbt/src/SoundDevice/BtDevSoundUtility.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,102 @@
1.4 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// File: BtDevSoundUtility.h
1.18 +// Author: Vasudevan Ramachandraiah
1.19 +// Date: July 16, 2002
1.20 +// Class that provides API to list ECOM plugin implementation IDs
1.21 +// (c) Nokia Inc.
1.22 +// Revisions:
1.23 +// Date: Author Description
1.24 +//
1.25 +//
1.26 +
1.27 +#ifndef __MMFBTDEVSOUNDUTILITY_H
1.28 +#define __MMFDEVSOUNDUTILITY_H
1.29 +
1.30 +#include <ecom/ecom.h>
1.31 +#include <badesca.h>
1.32 +
1.33 +#include <mmf/common/mmfutilities.h> // For TFourCC
1.34 +
1.35 +#define KFourCCLength 4
1.36 +
1.37 +class TMMFRawPackage
1.38 +/**
1.39 +*@internalTechnology
1.40 +*/
1.41 + {
1.42 +public:
1.43 + inline TPtr8& Package();
1.44 + inline const TPtr8& Package() const;
1.45 +protected:
1.46 + TMMFRawPackage(TInt aDerivedSize);
1.47 + inline void SetSize(TInt aDerivedSize);
1.48 +protected:
1.49 + TPtr8 iThis;
1.50 + };
1.51 +
1.52 +
1.53 +class TMMFToneFixedSequenceNames : public TMMFRawPackage
1.54 +/**
1.55 +*@internalTechnology
1.56 +*/
1.57 + {
1.58 +public:
1.59 + inline TMMFToneFixedSequenceNames();
1.60 +public:
1.61 + TInt iCount;
1.62 + };
1.63 +
1.64 +
1.65 +class HMMFToneFixedSequenceNames : public TMMFToneFixedSequenceNames
1.66 +/**
1.67 +*@internalTechnology
1.68 +*/
1.69 + {
1.70 +public:
1.71 + HMMFToneFixedSequenceNames();
1.72 + HMMFToneFixedSequenceNames* AddNameL(const TDesC& aName);
1.73 + };
1.74 +
1.75 +
1.76 +class CMMFDevSoundUtility : public CBase
1.77 +/**
1.78 +*internalTechnology
1.79 +*/
1.80 + {
1.81 +public:
1.82 + // Destructor
1.83 + ~CMMFDevSoundUtility();
1.84 + static CMMFDevSoundUtility* NewL();
1.85 + static CMMFDevSoundUtility* NewLC();
1.86 +
1.87 + void SeekUsingFourCCL(TUid aInterfaceUid, RImplInfoPtrArray& aPlugInArray, const TFourCC& aSrcDataType, const TFourCC& aDstDataType, const TDesC& aPreferredSupplier);
1.88 + void SelectByPreference(RImplInfoPtrArray& aPlugInArray, const TDesC& aPreferredSupplier);
1.89 + void SeekHwDevicePluginsL(RArray<TFourCC>& aSupportedDataTypes, TMMFState aState);
1.90 +
1.91 + void InitializeFixedSequenceL(CPtrC8Array** aFixedSequences);
1.92 + TBool RecognizeSequence(const TDesC8& aData);
1.93 + const TDesC& FixedSequenceName(TInt aSequenceNumber);
1.94 +
1.95 +private:
1.96 + CMMFDevSoundUtility();
1.97 + void ConstructL();
1.98 + TBool IsDataTypeMatch(CImplementationInformation* hwDeviceResourceEntry,const TDesC8& fourCCPtrPCM16, TMMFState aState);
1.99 +
1.100 +private:
1.101 + HMMFToneFixedSequenceNames* iFixedSequenceNames;
1.102 + HBufC8* iInfo;
1.103 + } ;
1.104 +
1.105 +#endif // __MMFBTDEVSOUNDUTILITY_H