telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatecreatedSecondary.cpp
branchRCL_3
changeset 19 630d2f34d719
parent 0 3553901f7fa8
child 20 07a122eea281
equal deleted inserted replaced
18:17af172ffa5f 19: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".
    18 /**
    18 /**
    19  @file 
    19  @file 
    20  @internalComponent
    20  @internalComponent
    21 */
    21 */
    22  
    22  
       
    23 
       
    24 
       
    25 #include "OstTraceDefinitions.h"
       
    26 #ifdef OST_TRACE_COMPILER_IN_USE
       
    27 #include "tpdpstatecreatedSecondaryTraces.h"
       
    28 #endif
       
    29 
    23 #include <networking/umtsnifcontrolif.h>
    30 #include <networking/umtsnifcontrolif.h>
    24 #include "tpdpstates.h"
    31 #include "tpdpstates.h"
    25 #include "spudfsmdebuglogger.h"
       
    26 #include "pdpfsmnmspace.h"
    32 #include "pdpfsmnmspace.h"
    27 #include "pdpfsmnmspace.h"
    33 #include "pdpfsmnmspace.h"
    28 #include "PDPFSM.h"
    34 #include "PDPFSM.h"
    29 #include "cpdpfsm.h"
    35 #include "cpdpfsm.h"
    30 
    36 
    31 TInt TPdpStateCreatedSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    37 TInt TPdpStateCreatedSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    32 {
    38 {
    33 	SPUDFSMVERBOSE_FNLOG("TPdpStateCreatedSecondary::Input()");
    39 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_1, ">>TPdpStateCreatedSecondary::Input()");
    34 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
    40 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
    35 
    41 
    36 	switch (aOperation)
    42 	switch (aOperation)
    37 	{
    43 	{
    38 	case SpudMan::EContextActivate: 
    44 	case SpudMan::EContextActivate: 
    39 		aFsm.ChangeStateToActivatingSecondary();
    45 		aFsm.ChangeStateToActivatingSecondary();
    40 		EtelDriverInput(aFsm, EtelDriver::EActivatePdp);
    46 		EtelDriverInput(aFsm, EtelDriver::EActivatePdp);
       
    47 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_3, "<<TPdpStateCreatedSecondary::Input()");
    41 		return KErrNone;		
    48 		return KErrNone;		
    42 	case SpudMan::EContextQoSSet:
    49 	case SpudMan::EContextQoSSet:
    43 		aFsm.ChangeStateToSettingQoS();
    50 		aFsm.ChangeStateToSettingQoS();
    44 		EtelDriverInput(aFsm, EtelDriver::ESetQoS);
    51 		EtelDriverInput(aFsm, EtelDriver::ESetQoS);
       
    52 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_4, "<<TPdpStateCreatedSecondary::Input()");
    45 		return KErrNone;
    53 		return KErrNone;
    46 	case SpudMan::EContextTFTModify:
    54 	case SpudMan::EContextTFTModify:
    47 		aFsm.ChangeStateToSettingTFT();
    55 		aFsm.ChangeStateToSettingTFT();
    48 		EtelDriverInput(aFsm, EtelDriver::ESetTft);
    56 		EtelDriverInput(aFsm, EtelDriver::ESetTft);
       
    57 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_5, "<<TPdpStateCreatedSecondary::Input()");
    49 		return KErrNone;
    58 		return KErrNone;
    50 	}
    59 	}
    51 	
    60 	
    52 	// default error handling
    61 	// default error handling
       
    62 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_6, "<<TPdpStateCreatedSecondary::Input()");
    53 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    63 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    54 }
    64 }
    55 
    65 
    56 
    66