sipvoipprovider/svptransfer/src/svptransferterminatedstate.cpp
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Transfer state representing the terminated state
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "svptransferterminatedstate.h"
       
    20 #include "svptransferstatecontext.h"
       
    21 #include "svplogger.h"
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // CSVPTransferTerminatedState::CSVPTransferTerminatedState
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 CSVPTransferTerminatedState::CSVPTransferTerminatedState()
       
    28     {
       
    29     }
       
    30 
       
    31 // ---------------------------------------------------------------------------
       
    32 // CSVPTransferTerminatedState::NewLC
       
    33 // ---------------------------------------------------------------------------
       
    34 //
       
    35 CSVPTransferTerminatedState* CSVPTransferTerminatedState::NewLC()
       
    36     {
       
    37     CSVPTransferTerminatedState* self = new( ELeave ) 
       
    38                                         CSVPTransferTerminatedState;
       
    39     CleanupStack::PushL( self );
       
    40     return self;
       
    41     }
       
    42 
       
    43 // ---------------------------------------------------------------------------
       
    44 // CSVPTransferTerminatedState::~CSVPTransferTerminatedState
       
    45 // ---------------------------------------------------------------------------
       
    46 //
       
    47 CSVPTransferTerminatedState::~CSVPTransferTerminatedState()
       
    48     {
       
    49     }
       
    50 
       
    51 // ---------------------------------------------------------------------------
       
    52 // CSVPTransferTerminatedState::DoApplyL
       
    53 // ---------------------------------------------------------------------------
       
    54 //
       
    55 void CSVPTransferTerminatedState::DoApplyL( 
       
    56                                     CSVPTransferStateContext& aContext )
       
    57     {
       
    58     SVPDEBUG1( "CSVPTransferTerminatedState::DoApplyL In" )
       
    59       
       
    60     // Clear incoming refer handling indication data.
       
    61     aContext.ResetIncomingReferTo();
       
    62     aContext.ResetIncomingReferredBy();
       
    63     aContext.ResetIncomingReplaces();
       
    64     
       
    65     // Clear refer and event data.
       
    66     aContext.SetMceEvent( NULL );
       
    67     aContext.SetMceRefer( NULL );
       
    68     
       
    69     // Set next state - idle. Do not apply yet.
       
    70     aContext.SetCurrentStateL( KSVPTransferIdleStateIndex );
       
    71     
       
    72     SVPDEBUG1( "CSVPTransferTerminatedState::DoApplyL Out" )
       
    73     }
       
    74   
       
    75 // ---------------------------------------------------------------------------
       
    76 // CSVPTransferTerminatedState::DoEnter
       
    77 // ---------------------------------------------------------------------------
       
    78 //
       
    79 void CSVPTransferTerminatedState::DoEnter( 
       
    80                                     CSVPTransferStateContext& /*aContext*/ )
       
    81     {
       
    82     }