sipvoipprovider/svptransfer/src/svptransferacceptedstate.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 accepted state
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "svptransferacceptedstate.h"
       
    20 #include "svptransferstatecontext.h"            // CSVPTransferStateContext
       
    21 #include "svptransferobserver.h"                // MSVPTransferObserver
       
    22 #include "svplogger.h"
       
    23 
       
    24 
       
    25 // ======== LOCAL FUNCTIONS ========
       
    26 
       
    27 
       
    28 // ======== MEMBER FUNCTIONS ========
       
    29 
       
    30 // ---------------------------------------------------------------------------
       
    31 // CSVPTransferAcceptedState::CSVPTransferAcceptedState
       
    32 // ---------------------------------------------------------------------------
       
    33 //
       
    34 CSVPTransferAcceptedState::CSVPTransferAcceptedState()
       
    35     {
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // CSVPTransferAcceptedState::NewLC
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 CSVPTransferAcceptedState* CSVPTransferAcceptedState::NewLC()
       
    43     {
       
    44     CSVPTransferAcceptedState* self = new( ELeave ) CSVPTransferAcceptedState;
       
    45     CleanupStack::PushL( self );
       
    46     return self;
       
    47     }
       
    48 
       
    49 
       
    50 // ---------------------------------------------------------------------------
       
    51 // CSVPTransferAcceptedState::~CSVPTransferAcceptedState
       
    52 // ---------------------------------------------------------------------------
       
    53 //
       
    54 CSVPTransferAcceptedState::~CSVPTransferAcceptedState()
       
    55     {
       
    56     }
       
    57 
       
    58 // ---------------------------------------------------------------------------
       
    59 // CSVPTransferAcceptedState::DoApplyL
       
    60 // ---------------------------------------------------------------------------
       
    61 //
       
    62 void CSVPTransferAcceptedState::DoApplyL( CSVPTransferStateContext& aContext )
       
    63     {
       
    64     SVPDEBUG1( "CSVPTransferAcceptedState::DoApplyL In" )
       
    65     
       
    66     if ( KSVPTransferAcceptedStateIndex == aContext.CurrentState() )
       
    67         {
       
    68         // No need to notify the observer.
       
    69         }
       
    70     else
       
    71         {
       
    72         // Notify the observer about the error
       
    73         aContext.TransferObserver().TransferFailed( KSVPErrTransferStateError );
       
    74         }
       
    75     
       
    76     SVPDEBUG1( "CSVPTransferAcceptedState::DoApplyL Out" )
       
    77     }
       
    78 
       
    79 // ---------------------------------------------------------------------------
       
    80 // CSVPTransferAcceptedState::DoEnter
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 void CSVPTransferAcceptedState::DoEnter( 
       
    84                                     CSVPTransferStateContext& /*aContext*/ )
       
    85     {
       
    86     SVPDEBUG1( "CSVPTransferAcceptedState::DoEnter" );
       
    87     }
       
    88 
       
    89 
       
    90