sl@0: /* 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: /** sl@0: @test sl@0: @internalComponent sl@0: sl@0: This contains CT_SoundDriverServer inline functions sl@0: */ sl@0: sl@0: CT_SoundDriverServer::CT_SoundDriverBlock::CT_SoundDriverBlock() sl@0: : CTestBlockController() sl@0: { sl@0: } sl@0: sl@0: void CT_SoundDriverServer::CT_SoundDriverBlock::ConstructL() sl@0: { sl@0: iServerStore->Close(); sl@0: iServerStore->SetHandle(KNullHandle); sl@0: } sl@0: sl@0: CT_SoundDriverServer::CT_SoundDriverBlock::~CT_SoundDriverBlock() sl@0: { sl@0: } sl@0: sl@0: /** sl@0: * Method to create wrapper according to param aData sl@0: * @param aData contains wrapper class name sl@0: */ sl@0: CDataWrapper* CT_SoundDriverServer::CT_SoundDriverBlock::CreateDataL(const TDesC& aData) sl@0: { sl@0: CDataWrapper* wrapper = NULL; sl@0: sl@0: if( KRMdaDevSound() == aData ) sl@0: { sl@0: wrapper = CT_MdaDevSoundData::NewL(iServerStore); sl@0: } sl@0: else if( KTCurrentSoundFormat() == aData ) sl@0: { sl@0: wrapper = CT_CurrentSoundFormatData::NewL(); sl@0: } sl@0: else if( KTSoundFormatsSupported() == aData ) sl@0: { sl@0: wrapper = CT_SoundFormatsSupportedData::NewL(); sl@0: } sl@0: return wrapper; sl@0: } sl@0: sl@0: CT_SoundDriverServer::CT_SoundDriverServer() sl@0: { sl@0: } sl@0: sl@0: CT_SoundDriverServer::~CT_SoundDriverServer() sl@0: { sl@0: iServerStore.Close(); sl@0: iServerStore.SetHandle(KNullHandle); sl@0: } sl@0: sl@0: CTestBlockController* CT_SoundDriverServer::CreateTestBlock() sl@0: { sl@0: CT_SoundDriverServer::CT_SoundDriverBlock* result = new sl@0: CT_SoundDriverServer::CT_SoundDriverBlock(); sl@0: result->iServerStore = &iServerStore; sl@0: result->ConstructL(); sl@0: return result; sl@0: }