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