diff -r 000000000000 -r ff3b6d0fd310 convergedcallengine/spsettings/tsrc/public/basic/spsettingsUT/stubs/FeatMgrStub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/convergedcallengine/spsettings/tsrc/public/basic/spsettingsUT/stubs/FeatMgrStub.cpp Tue Feb 02 01:11:09 2010 +0200 @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Stub implementation for needed libraries. +* +*/ + + + +// INCLUDE FILES +#include "FeatMgr.h" +#include +#include "TestData.h" + +TBool FeatureManager::iBtAudioSupported = ETrue; +TBool FeatureManager::iHelpSupported = ETrue; +TBool FeatureManager::iFeatureIdCsVideoTelephony = ETrue; + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// FeatureManager::InitializeLibL +// +// ----------------------------------------------------------------------------- +void FeatureManager::InitializeLibL() + { + } + +// ----------------------------------------------------------------------------- +// FeatureManager::InitializeLibL +// +// ----------------------------------------------------------------------------- +void FeatureManager::UnInitializeLib() + { + } + +// ----------------------------------------------------------------------------- +// FeatureManager::FeatureSupported +// +// ----------------------------------------------------------------------------- +TBool FeatureManager::FeatureSupported( TInt aFeature ) + { + TBool returnValue = EFalse; + + if ( aFeature == KFeatureIdCsVideoTelephony ) + { + returnValue = iFeatureIdCsVideoTelephony; + } + else if ( aFeature == KFeatureIdBtAudio ) + { + returnValue = iBtAudioSupported; + } + else if ( aFeature == KFeatureIdHelp ) + { + returnValue = iHelpSupported; + } + else if ( aFeature == KFeatureIdAutoRedialForVideoCall ) + { + returnValue = ETrue; + } + else if ( aFeature == KFeatureIdCommonVoip ) + { + if ( TestData::iCheckSupportedCase ) + { + returnValue = EFalse; + } + else + { + returnValue = ETrue; + } + } + else + { + // By default any other feature is not supported. + returnValue = EFalse; + } + + return returnValue; + } + +// End of File