telephonyprotocols/umtsgprsscpr/spudfsm/src/tpdpstatemodifingactive.cpp
changeset 69 b982c3e940f3
parent 59 ac20d6a0a19d
child 73 70d75957b98f
equal deleted inserted replaced
59:ac20d6a0a19d 69:b982c3e940f3
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // tpdpstatemodifyingactive.cpp
       
    15 // Modifying active context state
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file 
       
    21  @internalComponent
       
    22 */
       
    23  
       
    24 #include <networking/umtsnifcontrolif.h>
       
    25 #include "tpdpstates.h"
       
    26 #include "spudfsmdebuglogger.h"
       
    27 #include "pdpfsmnmspace.h"
       
    28 #include "cpdpfsm.h"
       
    29 
       
    30 TInt TPdpStateModifyingActive::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
       
    31 {
       
    32 	SPUDFSMVERBOSE_FNLOG("TPdpStateModifyingActive::Input()");
       
    33 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
       
    34 
       
    35 	switch (aOperation)
       
    36 	{
       
    37 	case PdpFsm::EPdpContextModified:
       
    38 		aFsm.ChangeStateToOpen();
       
    39 		SpudManNotify(aFsm, KContextModifyActiveEvent, KErrNone);
       
    40 		return KErrNone;
       
    41 	case PdpFsm::EPdpContextModifiedFailed:
       
    42 		aFsm.ChangeStateToOpen();
       
    43 		SpudManNotify(aFsm, KContextModifyActiveEvent, aErrorCode);
       
    44 		return KErrNone;
       
    45 	}
       
    46 	
       
    47 	// default error handling
       
    48 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
       
    49 }
       
    50 
       
    51