os/mm/devsound/sounddevbt/inc/HwDevice/MmfBtHwDevice2.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2002-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 #ifndef __MMF_BT_HW_DEVICE2_H__
    18 #define __MMF_BT_HW_DEVICE2_H__
    19 
    20 #include <mmfhwdevice.h>
    21 
    22 /**
    23  Specialisation of CMMFHwDevice that provides asynchronous initialisation.
    24  @publishedAll
    25  */
    26 class CMMFHwDevice2  : public CMMFHwDevice
    27 	{
    28 public:
    29 	// From CMMFHwDevice
    30 	static CMMFHwDevice2* NewL(const TFourCC& aSrcDatatype, const TFourCC& aDstDataType)
    31 		{
    32 		return reinterpret_cast<CMMFHwDevice2*>(CMMFHwDevice::NewL(aSrcDatatype, aDstDataType));
    33 		};
    34 	static CMMFHwDevice2* NewL(const TFourCC& aSrcDatatype, const TFourCC& aDstDataType, const TDesC& aPreferredSupplier)
    35 		{
    36 		return reinterpret_cast<CMMFHwDevice2*>(CMMFHwDevice::NewL(aSrcDatatype, aDstDataType, aPreferredSupplier));
    37 		};
    38 	inline static CMMFHwDevice2* NewL(TUid aUid)
    39 		{
    40 		return reinterpret_cast<CMMFHwDevice2*>(CMMFHwDevice::NewL(aUid));
    41 		};
    42 	static CMMFHwDevice2* NewL(TFileName aFileName)
    43 		{
    44 		return reinterpret_cast<CMMFHwDevice2*>(CMMFHwDevice::NewL(aFileName));
    45 		};
    46 	// CMMFHwDevice2 specific
    47 	inline virtual ~CMMFHwDevice2(){};
    48 	virtual void Init(THwDeviceInitParams& aDevInfo, TRequestStatus& aStatus) = 0;	
    49 	};
    50 	
    51 #endif
    52