telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatemodifingactive.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2009 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 
       
    31 #include <networking/umtsnifcontrolif.h>
    24 #include <networking/umtsnifcontrolif.h>
    32 #include "tpdpstates.h"
    25 #include "tpdpstates.h"
       
    26 #include "spudfsmdebuglogger.h"
    33 #include "pdpfsmnmspace.h"
    27 #include "pdpfsmnmspace.h"
    34 #include "cpdpfsm.h"
    28 #include "cpdpfsm.h"
    35 
    29 
    36 TInt TPdpStateModifyingActive::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    30 TInt TPdpStateModifyingActive::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    37 {
    31 {
    38 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_1, ">>TPdpStateModifyingActive::Input()");
    32 	SPUDFSMVERBOSE_FNLOG("TPdpStateModifyingActive::Input()");
    39 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
    33 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
    40 
    34 
    41 	switch (aOperation)
    35 	switch (aOperation)
    42 	{
    36 	{
    43 	case PdpFsm::EPdpContextModified:
    37 	case PdpFsm::EPdpContextModified:
    44 		aFsm.ChangeStateToOpen();
    38 		aFsm.ChangeStateToOpen();
    45 		SpudManNotify(aFsm, KContextModifyActiveEvent, KErrNone);
    39 		SpudManNotify(aFsm, KContextModifyActiveEvent, KErrNone);
    46 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_3, "<<TPdpStateModifyingActive::Input()");
       
    47 		return KErrNone;
    40 		return KErrNone;
    48 	case PdpFsm::EPdpContextModifiedFailed:
    41 	case PdpFsm::EPdpContextModifiedFailed:
    49 		aFsm.ChangeStateToOpen();
    42 		aFsm.ChangeStateToOpen();
    50 		SpudManNotify(aFsm, KContextModifyActiveEvent, aErrorCode);
    43 		SpudManNotify(aFsm, KContextModifyActiveEvent, aErrorCode);
    51 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_4, "<<TPdpStateModifyingActive::Input()");
       
    52 		return KErrNone;
    44 		return KErrNone;
    53 	}
    45 	}
    54 	
    46 	
    55 	// default error handling
    47 	// default error handling
    56 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEMODIFYINGACTIVE_INPUT_5, "<<TPdpStateModifyingActive::Input()");
       
    57 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    48 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    58 }
    49 }
    59 
    50 
    60 
    51