diff -r 7d48bed6ce0c -r 987c9837762f cellular/telephonysettings/xqbindings/psetwrapper/tsrc/mocks/mock_psetcalldiverting.cpp --- a/cellular/telephonysettings/xqbindings/psetwrapper/tsrc/mocks/mock_psetcalldiverting.cpp Tue Aug 31 15:45:17 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,255 +0,0 @@ -/* -* Copyright (c) 2009 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: -* -*/ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "PsetCallDiverting.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::CPsetCallDiverting -// ----------------------------------------------------------------------------- -// -CPsetCallDiverting::CPsetCallDiverting( - RMobilePhone & aPhone ) : iPhone(aPhone) - { - - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::ConstructL -// ----------------------------------------------------------------------------- -// -void CPsetCallDiverting::ConstructL( - MPsetDivertObserver & /*aObserver*/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::NewL -// ----------------------------------------------------------------------------- -// -CPsetCallDiverting * CPsetCallDiverting::NewL( - MPsetDivertObserver & aObserver, - RMobilePhone & aPhone ) - { - SMC_MOCK_NEWL2( CPsetCallDiverting *, MPsetDivertObserver &, aObserver, - RMobilePhone &, aPhone ) - - CPsetCallDiverting* self = new( ELeave ) CPsetCallDiverting( aPhone ); - CleanupStack::PushL( self ); - //self->ConstructL() - CleanupStack::Pop( self ); - return self; - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::~CPsetCallDiverting -// ----------------------------------------------------------------------------- -// -CPsetCallDiverting::~CPsetCallDiverting( ) - { - - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::SetDivertingL -// ----------------------------------------------------------------------------- -// -void CPsetCallDiverting::SetDivertingL( - const TCallDivertSetting & aDivert, - TBasicServiceGroups aBsc, - TBool aVmbx ) - { - SMC_MOCK_METHOD3( void, const TCallDivertSetting &, aDivert, - TBasicServiceGroups, aBsc, - TBool, aVmbx ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::GetDivertingStatusL -// ----------------------------------------------------------------------------- -// -void CPsetCallDiverting::GetDivertingStatusL( - const TServiceGroup aServiceGroup, - const TCallDivertingCondition aCondition, - TBasicServiceGroups aBsc ) - { - SMC_MOCK_METHOD3( void, const TServiceGroup, aServiceGroup, - const TCallDivertingCondition, aCondition, - TBasicServiceGroups, aBsc ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::CancelCurrentRequest -// ----------------------------------------------------------------------------- -// -TInt CPsetCallDiverting::CancelCurrentRequest( ) - { - SMC_MOCK_METHOD0( TInt ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::GetTimerValueL -// ----------------------------------------------------------------------------- -// -TInt CPsetCallDiverting::GetTimerValueL( ) - { - SMC_MOCK_METHOD0( TInt ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::SetTimerValueL -// ----------------------------------------------------------------------------- -// -TInt CPsetCallDiverting::SetTimerValueL( - const TInt & aIndex ) - { - SMC_MOCK_METHOD1( TInt, const TInt &, aIndex ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::GetDefaultNumbersL -// ----------------------------------------------------------------------------- -// -TInt CPsetCallDiverting::GetDefaultNumbersL( - CDesC16ArrayFlat & aDefNumbers ) - { - _LIT( KNumber1,"111111" ); - _LIT( KNumber2,"222222" ); - - aDefNumbers.AppendL(KNumber1()); - aDefNumbers.AppendL(KNumber2()); - - SMC_MOCK_METHOD1( TInt, CDesC16ArrayFlat &, aDefNumbers ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::SetNewDefaultNumberL -// ----------------------------------------------------------------------------- -// -TInt CPsetCallDiverting::SetNewDefaultNumberL( - TDes & aNumber ) - { - SMC_MOCK_METHOD1( TInt, TDes &, aNumber ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::SwapDefaultNumberL -// ----------------------------------------------------------------------------- -// -void CPsetCallDiverting::SwapDefaultNumberL( - const TInt & aLocation ) - { - SMC_MOCK_METHOD1( void, const TInt &, aLocation ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::SetUsedDataNumberL -// ----------------------------------------------------------------------------- -// -TInt CPsetCallDiverting::SetUsedDataNumberL( - TTelNumber & aNumber ) - { - SMC_MOCK_METHOD1( TInt, TTelNumber &, aNumber ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::SetUsedFaxNumberL -// ----------------------------------------------------------------------------- -// -TInt CPsetCallDiverting::SetUsedFaxNumberL( - TTelNumber & aNumber ) - { - SMC_MOCK_METHOD1( TInt, TTelNumber &, aNumber ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::GetUsedFaxNumberLC -// ----------------------------------------------------------------------------- -// -HBufC * CPsetCallDiverting::GetUsedFaxNumberLC( ) - { - SMC_MOCK_METHOD0( HBufC * ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::GetUsedDataNumberLC -// ----------------------------------------------------------------------------- -// -HBufC * CPsetCallDiverting::GetUsedDataNumberLC( ) - { - SMC_MOCK_METHOD0( HBufC * ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::SetRequestObserver -// ----------------------------------------------------------------------------- -// -void CPsetCallDiverting::SetRequestObserver( - MPsetRequestObserver * aObs ) - { - SMC_MOCK_METHOD1( void, MPsetRequestObserver *, aObs ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::VoiceMailQueryL -// ----------------------------------------------------------------------------- -// -void CPsetCallDiverting::VoiceMailQueryL( - TDes & aTelNumber ) - { - SMC_MOCK_METHOD1( void, TDes &, aTelNumber ) - } - - -// ----------------------------------------------------------------------------- -// CPsetCallDiverting::VideoMailQueryL -// ----------------------------------------------------------------------------- -// -void CPsetCallDiverting::VideoMailQueryL( - TDes & aTelNumber ) - { - SMC_MOCK_METHOD1( void, TDes &, aTelNumber ) - } - -