Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
22 This contains CT_SoundDriverServer inline functions
25 CT_SoundDriverServer::CT_SoundDriverBlock::CT_SoundDriverBlock()
26 : CTestBlockController()
30 void CT_SoundDriverServer::CT_SoundDriverBlock::ConstructL()
32 iServerStore->Close();
33 iServerStore->SetHandle(KNullHandle);
36 CT_SoundDriverServer::CT_SoundDriverBlock::~CT_SoundDriverBlock()
41 * Method to create wrapper according to param aData
42 * @param aData contains wrapper class name
44 CDataWrapper* CT_SoundDriverServer::CT_SoundDriverBlock::CreateDataL(const TDesC& aData)
46 CDataWrapper* wrapper = NULL;
48 if( KRMdaDevSound() == aData )
50 wrapper = CT_MdaDevSoundData::NewL(iServerStore);
52 else if( KTCurrentSoundFormat() == aData )
54 wrapper = CT_CurrentSoundFormatData::NewL();
56 else if( KTSoundFormatsSupported() == aData )
58 wrapper = CT_SoundFormatsSupportedData::NewL();
63 CT_SoundDriverServer::CT_SoundDriverServer()
67 CT_SoundDriverServer::~CT_SoundDriverServer()
70 iServerStore.SetHandle(KNullHandle);
73 CTestBlockController* CT_SoundDriverServer::CreateTestBlock()
75 CT_SoundDriverServer::CT_SoundDriverBlock* result = new
76 CT_SoundDriverServer::CT_SoundDriverBlock();
77 result->iServerStore = &iServerStore;