telephonyprotocols/umtsgprsscpr/spudfsm/src/tpdpstatecreatedSecondary.cpp
changeset 69 b982c3e940f3
parent 59 ac20d6a0a19d
child 73 70d75957b98f
equal deleted inserted replaced
59:ac20d6a0a19d 69:b982c3e940f3
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // State after secondary has been created, but not activated
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file 
       
    20  @internalComponent
       
    21 */
       
    22  
       
    23 #include <networking/umtsnifcontrolif.h>
       
    24 #include "tpdpstates.h"
       
    25 #include "spudfsmdebuglogger.h"
       
    26 #include "pdpfsmnmspace.h"
       
    27 #include "pdpfsmnmspace.h"
       
    28 #include "PDPFSM.h"
       
    29 #include "cpdpfsm.h"
       
    30 
       
    31 TInt TPdpStateCreatedSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
       
    32 {
       
    33 	SPUDFSMVERBOSE_FNLOG("TPdpStateCreatedSecondary::Input()");
       
    34 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
       
    35 
       
    36 	switch (aOperation)
       
    37 	{
       
    38 	case SpudMan::EContextActivate: 
       
    39 		aFsm.ChangeStateToActivatingSecondary();
       
    40 		EtelDriverInput(aFsm, EtelDriver::EActivatePdp);
       
    41 		return KErrNone;		
       
    42 	case SpudMan::EContextQoSSet:
       
    43 		aFsm.ChangeStateToSettingQoS();
       
    44 		EtelDriverInput(aFsm, EtelDriver::ESetQoS);
       
    45 		return KErrNone;
       
    46 	case SpudMan::EContextTFTModify:
       
    47 		aFsm.ChangeStateToSettingTFT();
       
    48 		EtelDriverInput(aFsm, EtelDriver::ESetTft);
       
    49 		return KErrNone;
       
    50 	}
       
    51 	
       
    52 	// default error handling
       
    53 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
       
    54 }
       
    55 
       
    56