telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstateactivatingmbms.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) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-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 "tpdpstateactivatingmbmsTraces.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 TPdpStateActivatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    35 TInt TPdpStateActivatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    30 {
    36 {
    31 	SPUDFSMVERBOSE_FNLOG("TPdpStateActivatingMbms::Input()");
    37 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_1, ">>TPdpStateActivatingMbms::Input()");
    32 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
    38 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
    33 
    39 
    34 	switch (aOperation)
    40 	switch (aOperation)
    35 	{
    41 	{
    36 	case PdpFsm::EPdpActivated:
    42 	case PdpFsm::EPdpActivated:
    37 		// When a mbms context is activated, the context status must be updated before sending the activated event
    43 		// When a mbms context is activated, the context status must be updated before sending the activated event
    38 		// Normally this change in status is updated by a notify context status change event
    44 		// Normally this change in status is updated by a notify context status change event
    39 		aFsm.Set(RPacketContext::EStatusActive);
    45 		aFsm.Set(RPacketContext::EStatusActive);
    40 		aFsm.ChangeStateToCreatedMbms();//there is no Qos to be set
    46 		aFsm.ChangeStateToCreatedMbms();//there is no Qos to be set
    41 		SpudManNotify (aFsm, KContextActivateEvent, KErrNone);
    47 		SpudManNotify (aFsm, KContextActivateEvent, KErrNone);
       
    48 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_3, "<<TPdpStateActivatingMbms::Input()");
    42 		return KErrNone;
    49 		return KErrNone;
    43 	case PdpFsm::EPdpActivatedFailed:
    50 	case PdpFsm::EPdpActivatedFailed:
    44 		SPUDFSMVERBOSE_LOG(_L("*** FAILURE ***"));
    51 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_4, "*** FAILURE ***");
    45 		aFsm.ChangeStateToCreatedMbms();
    52 		aFsm.ChangeStateToCreatedMbms();
    46 		SpudManNotify (aFsm, KContextActivateEvent, aErrorCode);
    53 		SpudManNotify (aFsm, KContextActivateEvent, aErrorCode);
       
    54 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_5, "<<TPdpStateActivatingMbms::Input()");
    47 		return KErrNone;
    55 		return KErrNone;
    48 	// no default
    56 	// no default
    49 	}
    57 	}
    50 
    58 
    51 	// default error handling
    59 	// default error handling
       
    60 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_6, "<<TPdpStateActivatingMbms::Input()");
    52 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    61 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    53 }
    62 }