telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstateopeningphone.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
    17 
    17 
    18 /**
    18 /**
    19  @file 
    19  @file 
    20  @internalComponent
    20  @internalComponent
    21 */
    21 */
    22  
       
    23 
       
    24 
    22 
    25 #include "OstTraceDefinitions.h"
    23 #include "OstTraceDefinitions.h"
    26 #ifdef OST_TRACE_COMPILER_IN_USE
    24 #ifdef OST_TRACE_COMPILER_IN_USE
    27 #include "tpdpstateopeningphoneTraces.h"
    25 #include "tpdpstateopeningphoneTraces.h"
    28 #endif
    26 #endif
    34 #include "cpdpfsm.h"
    32 #include "cpdpfsm.h"
    35 #include "PDPFSM.h"
    33 #include "PDPFSM.h"
    36 
    34 
    37 TInt TPdpStateOpeningPhone::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    35 TInt TPdpStateOpeningPhone::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    38 {
    36 {
    39 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEOPENINGPHONE_INPUT_1, ">>TPdpStateOpeningPhone::Input()");
       
    40 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEOPENINGPHONE_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
       
    41 
       
    42 	switch (aOperation)
    37 	switch (aOperation)
    43 	{
    38 	{
    44 	// ETel notifications
    39 	// ETel notifications
    45 	case PdpFsm::EPhoneOpened:
    40 	case PdpFsm::EPhoneOpened:
    46 		aFsm.ChangeStateToCreatingPrimary();
    41 		aFsm.ChangeStateToCreatingPrimary();
    47 		iPdpFsmFactory->iEtelOpened = ETrue;		
    42 		iPdpFsmFactory->iEtelOpened = ETrue;		
    48 		EtelDriverInput(aFsm, EtelDriver::ECreate1ryPdpContext);
    43 		EtelDriverInput(aFsm, EtelDriver::ECreate1ryPdpContext);
    49 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEOPENINGPHONE_INPUT_3, "<<TPdpStateOpeningPhone::Input()");
       
    50 		return KErrNone;
    44 		return KErrNone;
    51 	case PdpFsm::EPhoneOpenedFailed:
    45 	case PdpFsm::EPhoneOpenedFailed:
    52 		aFsm.ChangeStateToInitialised();
    46 		aFsm.ChangeStateToInitialised();
    53 		iPdpFsmFactory->iEtelOpened = EFalse;		
    47 		iPdpFsmFactory->iEtelOpened = EFalse;		
    54 		SpudManNotify (aFsm, KPrimaryContextCreated, aErrorCode);
    48 		SpudManNotify (aFsm, KPrimaryContextCreated, aErrorCode);
    55 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEOPENINGPHONE_INPUT_4, "<<TPdpStateOpeningPhone::Input()");
    49 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEOPENINGPHONE_INPUT_1, "*** PHONE OPEN FAILED ***");
    56 		return KErrNone;
    50 		return KErrNone;
    57   case SpudMan::ECancelContextCreate:
    51   case SpudMan::ECancelContextCreate:
    58 		aFsm.ChangeStateToStopping();
    52 		aFsm.ChangeStateToStopping();
    59 		EtelDriverCancel(aFsm);
    53 		EtelDriverCancel(aFsm);
    60 		EtelDriverInput(aFsm, EtelDriver::EContextDelete);
    54 		EtelDriverInput(aFsm, EtelDriver::EContextDelete);
    61 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEOPENINGPHONE_INPUT_5, "<<TPdpStateOpeningPhone::Input()");
       
    62 		return KErrNone;
    55 		return KErrNone;
    63 	}
    56 	}
    64 	
    57 	
    65 	// default error handling
    58 	// default error handling
    66 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEOPENINGPHONE_INPUT_6, "<<TPdpStateOpeningPhone::Input()");
       
    67 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    59 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    68 }
    60 }
    69 
       
    70