telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatesettingtft.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".
    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 "tpdpstatesettingtftTraces.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 "cpdpfsm.h"
    33 #include "cpdpfsm.h"
    28 
    34 
    29 TInt TPdpStateSettingTFT::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    35 TInt TPdpStateSettingTFT::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    30 {
    36 {
    31 	SPUDFSMVERBOSE_FNLOG("TPdpStateSettingTFT::Input()");
    37 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_1, ">>TPdpStateSettingTFT::Input()");
    32 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
    38 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
    33 
    39 
    34 	switch (aOperation)
    40 	switch (aOperation)
    35 	{
    41 	{
    36 	case PdpFsm::ETftSet:
    42 	case PdpFsm::ETftSet:
    37 		if (aFsm.iContextType != SpudMan::EMbms)
    43 		if (aFsm.iContextType != SpudMan::EMbms)
    50 				{
    56 				{
    51 				aFsm.ChangeStateToCreatedMbms();
    57 				aFsm.ChangeStateToCreatedMbms();
    52 				}
    58 				}
    53 			}
    59 			}
    54 		SpudManNotify(aFsm, KContextTFTModifiedEvent, KErrNone);
    60 		SpudManNotify(aFsm, KContextTFTModifiedEvent, KErrNone);
       
    61 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_3, "<<TPdpStateSettingTFT::Input()");
    55 		return KErrNone;
    62 		return KErrNone;
    56 	case PdpFsm::ETftSetFailed:
    63 	case PdpFsm::ETftSetFailed:
    57 		if (aFsm.iContextType != SpudMan::EMbms)
    64 		if (aFsm.iContextType != SpudMan::EMbms)
    58 			{
    65 			{
    59 			aFsm.ChangeStateToCreatedSecondary();
    66 			aFsm.ChangeStateToCreatedSecondary();
    61 		else
    68 		else
    62 			{
    69 			{
    63 			aFsm.ChangeStateToCreatedMbms();
    70 			aFsm.ChangeStateToCreatedMbms();
    64 			}
    71 			}
    65 		SpudManNotify(aFsm, KContextTFTModifiedEvent, aErrorCode);
    72 		SpudManNotify(aFsm, KContextTFTModifiedEvent, aErrorCode);
       
    73 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_4, "<<TPdpStateSettingTFT::Input()");
    66 		return KErrNone;
    74 		return KErrNone;
    67 	}
    75 	}
    68 	
    76 	
    69 	// default error handling
    77 	// default error handling
       
    78 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_5, "<<TPdpStateSettingTFT::Input()");
    70 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    79 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    71 }
    80 }
    72 
    81 
    73 
    82