diff -r 7b872347d83b -r 6d0b9f605b61 voipplugins/svtcallmenu/src/svtcallstatehandler.cpp --- a/voipplugins/svtcallmenu/src/svtcallstatehandler.cpp Tue Feb 02 00:05:57 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,112 +0,0 @@ -/* -* Copyright (c) 2008 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: Settings handler class for svtcallmenu. -* -*/ - - -#include "svtcallstatehandler.h" - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -void CSvtCallStateHandler::ConstructL( - const RArray& aCallArray ) - { - TInt arrayCount = aCallArray.Count(); - for ( TInt i=0; i < arrayCount; i++ ) - { - iCallArray.AppendL( aCallArray[i] ); - } - } - - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -CSvtCallStateHandler::CSvtCallStateHandler() - { - - } - - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -CSvtCallStateHandler* CSvtCallStateHandler::NewL( - const RArray& aCallArray ) - { - CSvtCallStateHandler* self = new ( ELeave ) CSvtCallStateHandler(); - CleanupStack::PushL( self ); - self->ConstructL( aCallArray ); - CleanupStack::Pop( self ); - return self; - } - - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -CSvtCallStateHandler::~CSvtCallStateHandler() - { - iCallArray.Close(); - } - -// --------------------------------------------------------------------------- -// Checks is feature supported -// --------------------------------------------------------------------------- -// -TBool CSvtCallStateHandler::FeatureSupported( - TFeature aFeature ) const - { - TBool ret( EFalse ); - - switch( aFeature ) - { - case ESvmFeatureUnattendedTransfer: - { - ret = UnattendedTransferPossible(); - break; - } - default: - break; - } - - return ret; - } - - -// --------------------------------------------------------------------------- -// Checks is unattended transfer currently possible -// --------------------------------------------------------------------------- -// -TBool CSvtCallStateHandler::UnattendedTransferPossible() const - { - TBool ret( EFalse ); - TInt arrayCount = iCallArray.Count(); - - for ( TInt i=0; i < arrayCount; i++ ) - { - if ( iCallArray[i].iCallType == CTelMenuExtension::EPsVoice && - iCallArray[i].iCallState == CTelMenuExtension::EActive ) - { - // Unattended transfer possible if there is active voip call - ret = ETrue; - } - } - return ret; - }