telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatemodifingactive.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
child 73 70d75957b98f
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    19 /**
    19 /**
    20  @file 
    20  @file 
    21  @internalComponent
    21  @internalComponent
    22 */
    22 */
    23  
    23  
       
    24 
       
    25 
       
    26 #include "OstTraceDefinitions.h"
       
    27 #ifdef OST_TRACE_COMPILER_IN_USE
       
    28 #include "tpdpstatemodifingactiveTraces.h"
       
    29 #endif
       
    30 
    24 #include <networking/umtsnifcontrolif.h>
    31 #include <networking/umtsnifcontrolif.h>
    25 #include "tpdpstates.h"
    32 #include "tpdpstates.h"
    26 #include "spudfsmdebuglogger.h"
       
    27 #include "pdpfsmnmspace.h"
    33 #include "pdpfsmnmspace.h"
    28 #include "cpdpfsm.h"
    34 #include "cpdpfsm.h"
    29 
    35 
    30 TInt TPdpStateModifyingActive::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    36 TInt TPdpStateModifyingActive::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    31 {
    37 {
    32 	SPUDFSMVERBOSE_FNLOG("TPdpStateModifyingActive::Input()");
    38 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_1, ">>TPdpStateModifyingActive::Input()");
    33 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
    39 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
    34 
    40 
    35 	switch (aOperation)
    41 	switch (aOperation)
    36 	{
    42 	{
    37 	case PdpFsm::EPdpContextModified:
    43 	case PdpFsm::EPdpContextModified:
    38 		aFsm.ChangeStateToOpen();
    44 		aFsm.ChangeStateToOpen();
    39 		SpudManNotify(aFsm, KContextModifyActiveEvent, KErrNone);
    45 		SpudManNotify(aFsm, KContextModifyActiveEvent, KErrNone);
       
    46 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_3, "<<TPdpStateModifyingActive::Input()");
    40 		return KErrNone;
    47 		return KErrNone;
    41 	case PdpFsm::EPdpContextModifiedFailed:
    48 	case PdpFsm::EPdpContextModifiedFailed:
    42 		aFsm.ChangeStateToOpen();
    49 		aFsm.ChangeStateToOpen();
    43 		SpudManNotify(aFsm, KContextModifyActiveEvent, aErrorCode);
    50 		SpudManNotify(aFsm, KContextModifyActiveEvent, aErrorCode);
       
    51 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_4, "<<TPdpStateModifyingActive::Input()");
    44 		return KErrNone;
    52 		return KErrNone;
    45 	}
    53 	}
    46 	
    54 	
    47 	// default error handling
    55 	// default error handling
       
    56 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_5, "<<TPdpStateModifyingActive::Input()");
    48 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    57 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    49 }
    58 }
    50 
    59 
    51 
    60