telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatesettingqosprimary.cpp
changeset 42 3adadc800673
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
31:8ab6687fb94c 42:3adadc800673
     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".
    20  @internalComponent
    20  @internalComponent
    21 */
    21 */
    22  
    22  
    23 #include <networking\UmtsNifControlIf.h>
    23 #include <networking\UmtsNifControlIf.h>
    24 #include "tpdpstates.h"
    24 #include "tpdpstates.h"
    25 #include "spudfsmdebuglogger.h"
       
    26 #include "pdpfsmnmspace.h"
    25 #include "pdpfsmnmspace.h"
    27 #include "cpdpfsm.h"
    26 #include "cpdpfsm.h"
    28 
    27 
    29 TInt TPdpStateSettingQoSPrimary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    28 TInt TPdpStateSettingQoSPrimary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    30 {
    29 {
    31 	SPUDFSMVERBOSE_FNLOG("TPdpStateSettingQoSPrimary::Input()");
    30 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGQOSPRIMARY_INPUT_1, ">>TPdpStateSettingQoSPrimary::Input()");
    32 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
    31 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGQOSPRIMARY_INPUT_2, "aOperation : %S(%d)", LogOperation(aFsm, aOperation), aOperation);
    33 
    32 
    34 	switch (aOperation)
    33 	switch (aOperation)
    35 	{
    34 	{
    36 	case PdpFsm::EQoSSet:
    35 	case PdpFsm::EQoSSet:
    37 		aFsm.ChangeStateToActivatingPrimary();
    36 		aFsm.ChangeStateToActivatingPrimary();
    38 		EtelDriverInput(aFsm, EtelDriver::EActivatePdp);
    37 		EtelDriverInput(aFsm, EtelDriver::EActivatePdp);
       
    38 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGQOSPRIMARY_INPUT_3, "<<TPdpStateSettingQoSPrimary::Input()");
    39 		return KErrNone;
    39 		return KErrNone;
    40 	case PdpFsm::EQoSSetFailed:
    40 	case PdpFsm::EQoSSetFailed:
    41 		aFsm.ChangeStateToClosing();
    41 		aFsm.ChangeStateToClosing();
    42 		SpudManNotify (aFsm, KPrimaryContextCreated, aErrorCode); // or is it KContextActivateEvent?
    42 		SpudManNotify (aFsm, KPrimaryContextCreated, aErrorCode); // or is it KContextActivateEvent?
    43 		EtelDriverInput(aFsm, EtelDriver::EContextDelete);
    43 		EtelDriverInput(aFsm, EtelDriver::EContextDelete);
       
    44 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGQOSPRIMARY_INPUT_4, "<<TPdpStateSettingQoSPrimary::Input()");
    44 		return KErrNone;
    45 		return KErrNone;
    45 	}
    46 	}
    46 	
    47 	
    47 	// default error handling
    48 	// default error handling
       
    49 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGQOSPRIMARY_INPUT_5, "<<TPdpStateSettingQoSPrimary::Input()");
    48 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    50 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    49 }
    51 }
    50 
    52 
    51 
    53