sl@0: /* sl@0: * Copyright (c) 2004-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: sl@0: sl@0: // Interface's (abstract base class's) destructor sl@0: inline CAudioStreamAdaptation::~CAudioStreamAdaptation() sl@0: { sl@0: REComSession::DestroyedImplementation(iDtor_ID_Key); sl@0: } sl@0: sl@0: // Interface's (abstract base class's) static factory method implementation. sl@0: // Asks ECOM plugin framework to instantiate appropriate concret plugin sl@0: // implementation. sl@0: sl@0: inline CAudioStreamAdaptation* CAudioStreamAdaptation::NewL(TUid aType) sl@0: { sl@0: TAny* ptr = REComSession::CreateImplementationL( aType, _FOFF(CAudioStreamAdaptation,iDtor_ID_Key) ) ; sl@0: sl@0: // The type of TAny* ptr should be CAudioStreamAdaptation sl@0: return REINTERPRET_CAST(CAudioStreamAdaptation*, ptr); sl@0: } sl@0: