telephonyprotocols/pdplayer/umts/spudfsm/src/cpdpfsm.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
    63 :iPdpFsmEventHandler(&aPdpFsmEventHandler)
    63 :iPdpFsmEventHandler(&aPdpFsmEventHandler)
    64 #endif
    64 #endif
    65 // NOTE: Both pointers are valid when called - see CPdpFsmFactory and CPdpFsmInterface. 
    65 // NOTE: Both pointers are valid when called - see CPdpFsmFactory and CPdpFsmInterface. 
    66 // No other caller is expected.
    66 // No other caller is expected.
    67     {
    67     {
    68 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CTOR_1, ">>CPdpFsm::CPdpFsm()");
    68 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CTOR_1, "Constructor for Pdp ID %d", aPdpId);
    69 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CTOR_2, "Pdp ID %d",iPdpId);
    69 
    70 	
       
    71 	// save for later
    70 	// save for later
    72 	iPdpId = aPdpId;
    71 	iPdpId = aPdpId;
    73 	
       
    74 	iPdpFsmFactory = aPdpFsmFactory;
    72 	iPdpFsmFactory = aPdpFsmFactory;
    75 	
       
    76 	iEtelDriverInput = aEtelDriverInput;
    73 	iEtelDriverInput = aEtelDriverInput;
    77 	iContextType = aContextType;
    74 	iContextType = aContextType;
    78 	
       
    79 	// we need a state
    75 	// we need a state
    80 	iState = &iPdpFsmFactory->iStateInitialised;
    76 	iState = &iPdpFsmFactory->iStateInitialised;
    81 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CTOR_3, "<<CPdpFsm::CPdpFsm()");
       
    82     }
    77     }
    83     
    78     
    84 
    79 
    85 CPdpFsm::~CPdpFsm()
    80 CPdpFsm::~CPdpFsm()
    86     {
    81     {
    87 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_DTOR_1, ">>CPdpFsm::~CPdpFsm()");
    82 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_DTOR_1, "Destructor for Pdp ID %d",iPdpId);
    88 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_DTOR_2, "Pdp ID %d",iPdpId);
       
    89 	iContextConfig.Close();
    83 	iContextConfig.Close();
    90 	iEtelDriverInput->DeletePdp(iPdpId);
    84 	iEtelDriverInput->DeletePdp(iPdpId);
    91 	iSessionInfo.iSessionIds.Close();	
    85 	iSessionInfo.iSessionIds.Close();	
    92 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_DTOR_3, "<<CPdpFsm::~CPdpFsm()");
       
    93     }
    86     }
    94 
    87 
    95 	
    88 	
    96 TInt CPdpFsm::Input (const TInt aOperation, const TInt aParam)
    89 TInt CPdpFsm::Input (const TInt aOperation, const TInt aParam)
    97     {
    90     {
    98 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_INPUT_1, ">>CPdpFsm::Input()");
    91     OstTraceDefExt4(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_INPUT_1, "For context name [%S], State [%S], Operation [%S], Error Code [%d]", iDataChannelV2.iChannelId, iState->iName, *iState->LogOperation(*this, aOperation), aParam);	
    99 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_INPUT_2, "Pdp ID %d",iPdpId);
       
   100 	
       
   101 #if (OST_TRACE_CATEGORY & OST_TRACE_CATEGORY_DEBUG)
       
   102 	OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_INPUT_3, "State : %S", iState->iName);
       
   103 
       
   104 
       
   105 	OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_INPUT_4, "Pdp ID %d, State '%S', Operation '%S'",iPdpId, iState->iName, *iState->LogOperation(*this, aOperation));
       
   106 #endif  
       
   107 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_INPUT_5, "<<CPdpFsm::Input()");
       
   108 	return iState->Input (*this, aOperation, aParam);
    92 	return iState->Input (*this, aOperation, aParam);
   109     }
    93     }
   110 	
       
   111 
    94 
   112 #ifdef SYMBIAN_NETWORKING_UMTSR5
    95 #ifdef SYMBIAN_NETWORKING_UMTSR5
   113 void CPdpFsm::Get(RPacketQoS::TQoSR5Requested& aParam)
    96 void CPdpFsm::Get(RPacketQoS::TQoSR5Requested& aParam)
   114 {
    97 {
   115 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET_1, ">>CPdpFsm::Get(QoSR5Req)");
       
   116 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET_2, "Pdp ID %d",iPdpId);
       
   117 
       
   118 	ASSERT(iQosRequested.ExtensionId() == TPacketDataConfigBase::KConfigRel5);
    98 	ASSERT(iQosRequested.ExtensionId() == TPacketDataConfigBase::KConfigRel5);
   119 	aParam = iQosRequested.RequestedQoSR5();
    99 	aParam = iQosRequested.RequestedQoSR5();
   120 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET_3, "<<CPdpFsm::Get(QoSR5Req)");
       
   121 }
   100 }
   122 
   101 
   123 void CPdpFsm::Get(RPacketQoS::TQoSR5Negotiated& aParam)
   102 void CPdpFsm::Get(RPacketQoS::TQoSR5Negotiated& aParam)
   124 {
   103 {
   125 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET1_1, ">>CPdpFsm::Get(QoSR5Neg)");
       
   126 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET1_2, "Pdp ID %d",iPdpId);
       
   127 
       
   128 	ASSERT(iQosNegotiated.ExtensionId() == TPacketDataConfigBase::KConfigRel5);
   104 	ASSERT(iQosNegotiated.ExtensionId() == TPacketDataConfigBase::KConfigRel5);
   129 	aParam = iQosNegotiated.NegotiatedQoSR5();
   105 	aParam = iQosNegotiated.NegotiatedQoSR5();
   130 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET1_3, "<<CPdpFsm::Get(QoSR5Neg)");
       
   131 }
   106 }
   132 
   107 
   133 #else
   108 #else
   134 // !SYMBIAN_NETWORKING_UMTSR5
   109 // !SYMBIAN_NETWORKING_UMTSR5
   135 
   110 
   136 void CPdpFsm::Get(RPacketQoS::TQoSR99_R4Requested& aParam)
   111 void CPdpFsm::Get(RPacketQoS::TQoSR99_R4Requested& aParam)
   137     {
   112     {
   138 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET2_1, ">>CPdpFsm::Get(QosReq)");
       
   139 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET2_2, "Pdp ID %d",iPdpId);
       
   140 
       
   141 	aParam = iQosRequested.RequestedQoSR99_R4();
   113 	aParam = iQosRequested.RequestedQoSR99_R4();
   142 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET2_3, "<<CPdpFsm::Get(QosReq)");
       
   143     }
   114     }
   144 
   115 
   145 void CPdpFsm::Get(RPacketQoS::TQoSR99_R4Negotiated& aParam)
   116 void CPdpFsm::Get(RPacketQoS::TQoSR99_R4Negotiated& aParam)
   146     {
   117     {
   147 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET3_1, ">>CPdpFsm::Get(QoSNeg)");
       
   148 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET3_2, "Pdp ID %d",iPdpId);
       
   149 
       
   150 	aParam = iQosNegotiated.NegotiatedQoSR99_R4();
   118 	aParam = iQosNegotiated.NegotiatedQoSR99_R4();
   151 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET3_3, "<<CPdpFsm::Get(QoSNeg)");
       
   152     }
   119     }
   153     
   120     
   154 #endif
   121 #endif
   155 // SYMBIAN_NETWORKING_UMTSR5
   122 // SYMBIAN_NETWORKING_UMTSR5
   156 
   123 
   157 
   124 
   158 void CPdpFsm::Get(TTFTInfo& aParam)
   125 void CPdpFsm::Get(TTFTInfo& aParam)
   159     {
   126     {
   160 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET4_1, ">>CPdpFsm::Get(TFTInfo)");
       
   161 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET4_2, "Pdp ID %d",iPdpId);
       
   162 
       
   163 	aParam = iTFT;
   127 	aParam = iTFT;
   164 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET4_3, "<<CPdpFsm::Get(TFTInfo)");
       
   165     }
   128     }
   166 
   129 
   167 void CPdpFsm::Get(TTFTOperationCode& aParam)
   130 void CPdpFsm::Get(TTFTOperationCode& aParam)
   168     {
   131     {
   169 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET5_1, ">>CPdpFsm::Get(TFTOperationCode)");
       
   170 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET5_2, "Pdp ID %d",iPdpId);
       
   171 
       
   172 	aParam = iTFTOperationCode;
   132 	aParam = iTFTOperationCode;
   173 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET5_3, "<<CPdpFsm::Get(TFTOperationCode)");
       
   174     }
   133     }
   175 
   134 
   176 void CPdpFsm::Get(RPacketContext::TDataChannelV2& aParam)
   135 void CPdpFsm::Get(RPacketContext::TDataChannelV2& aParam)
   177     {
   136     {
   178 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET6_1, ">>CPdpFsm::Get(RPacketContext::TDataChannelV2)");
       
   179 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET6_2, "Pdp ID %d",iPdpId);
       
   180 
       
   181 	aParam = iDataChannelV2;
   137 	aParam = iDataChannelV2;
   182 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET6_3, "<<CPdpFsm::Get(RPacketContext::TDataChannelV2)");
       
   183     }
   138     }
   184 
   139 
   185 void CPdpFsm::Get(TPacketDataConfigBase& aParam)
   140 void CPdpFsm::Get(TPacketDataConfigBase& aParam)
   186 	{
   141 	{
   187 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET7_1, ">>CPdpFsm::Get(TPacketDataConfigBase)");
       
   188 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET7_2, "Pdp ID %d",iPdpId);
       
   189 
       
   190 	TInt rel = GetContextConfigAs<TPacketDataConfigBase>().ExtensionId();
   142 	TInt rel = GetContextConfigAs<TPacketDataConfigBase>().ExtensionId();
       
   143 
       
   144 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET_PACKETDATACONFIGBASE_1, "(TPacketDataConfigBase) for Packet Network [%d]", rel);
       
   145 
   191 	if (rel == 0)
   146 	if (rel == 0)
   192 		{
   147 		{
   193     		// buffer has not been initialised yet
   148     		// buffer has not been initialised yet
   194     		InitialiseContextConfig(aParam.ExtensionId());
   149     		InitialiseContextConfig(aParam.ExtensionId());
   195     		}
   150     		}
   206 
   161 
   207     		case TPacketDataConfigBase::KConfigRel5:
   162     		case TPacketDataConfigBase::KConfigRel5:
   208 			Mem::Copy(&aParam, const_cast<TUint8*>(iContextConfig.Ptr()), sizeof(RPacketContext::TContextConfig_R5));
   163 			Mem::Copy(&aParam, const_cast<TUint8*>(iContextConfig.Ptr()), sizeof(RPacketContext::TContextConfig_R5));
   209 			break;
   164 			break;
   210 		}
   165 		}
   211 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET7_3, "<<CPdpFsm::Get(TPacketDataConfigBase)");
       
   212 	}
   166 	}
   213 
   167 
   214 void CPdpFsm::Get(RPacketContext::TContextStatus& aParam)
   168 void CPdpFsm::Get(RPacketContext::TContextStatus& aParam)
   215     {
   169     {
   216 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET8_1, ">>CPdpFsm::Get(RPacketContext::TContextStatus)");
       
   217 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET8_2, "Pdp ID %d",iPdpId);
       
   218 
       
   219 	aParam = iContextStatus;
   170 	aParam = iContextStatus;
   220 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET8_3, "<<CPdpFsm::Get(RPacketContext::TContextStatus)");
       
   221     }
   171     }
   222 
   172 
   223 
   173 
   224 #ifdef SYMBIAN_NETWORKING_UMTSR5
   174 #ifdef SYMBIAN_NETWORKING_UMTSR5
   225 void CPdpFsm::Set(const RPacketQoS::TQoSR5Requested& aParam)
   175 void CPdpFsm::Set(const RPacketQoS::TQoSR5Requested& aParam)
   226 {
   176 {
   227 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET_1, ">>CPdpFsm::Set(QoSR5Req)");
       
   228 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET_2, "Pdp ID %d",iPdpId);
       
   229 
       
   230 	iQosRequested = aParam;
   177 	iQosRequested = aParam;
   231 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET_3, "<<CPdpFsm::Set(QoSR5Req)");
       
   232 }
   178 }
   233 
   179 
   234 void CPdpFsm::Set(const RPacketQoS::TQoSR5Negotiated& aParam)
   180 void CPdpFsm::Set(const RPacketQoS::TQoSR5Negotiated& aParam)
   235 {
   181 {
   236 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET1_1, ">>CPdpFsm::Set(QoSR5Neg)");
       
   237 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET1_2, "Pdp ID %d",iPdpId);
       
   238 
       
   239 	iQosNegotiated = aParam;
   182 	iQosNegotiated = aParam;
   240 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET1_3, "<<CPdpFsm::Set(QoSR5Neg)");
       
   241 }
   183 }
   242 
   184 
   243 #else
   185 #else
   244 // !SYMBIAN_NETWORKING_UMTSR5
   186 // !SYMBIAN_NETWORKING_UMTSR5
   245 
   187 
   246 
   188 
   247 void CPdpFsm::Set(const RPacketQoS::TQoSR99_R4Requested& aParam)
   189 void CPdpFsm::Set(const RPacketQoS::TQoSR99_R4Requested& aParam)
   248     {
   190     {
   249 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET2_1, ">>CPdpFsm::Set(QoSReq)");
       
   250 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET2_2, "Pdp ID %d",iPdpId);
       
   251 
       
   252 	iQosRequested = aParam;
   191 	iQosRequested = aParam;
   253 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET2_3, "<<CPdpFsm::Set(QoSReq)");
       
   254 
       
   255     }
   192     }
   256 
   193 
   257 
   194 
   258 void CPdpFsm::Set(const RPacketQoS::TQoSR99_R4Negotiated& aParam)
   195 void CPdpFsm::Set(const RPacketQoS::TQoSR99_R4Negotiated& aParam)
   259     {
   196     {
   260 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET3_1, ">>CPdpFsm::Set(QoSNeg)");
       
   261 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET3_2, "Pdp ID %d",iPdpId);
       
   262 
       
   263 	iQosNegotiated = aParam;
   197 	iQosNegotiated = aParam;
   264 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET3_3, "<<CPdpFsm::Set(QoSNeg)");
       
   265     }
   198     }
   266 
   199 
   267 
   200 
   268 #endif 
   201 #endif 
   269 // SYMBIAN_NETWORKING_UMTSR5
   202 // SYMBIAN_NETWORKING_UMTSR5
   270 
   203 
   271 
   204 
   272 void CPdpFsm::Set(const TTFTInfo& aParam)
   205 void CPdpFsm::Set(const TTFTInfo& aParam)
   273     {
   206     {
   274 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET4_1, ">>CPdpFsm::Set(TFT)");
       
   275 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET4_2, "Pdp ID %d",iPdpId);
       
   276 
       
   277 	iTFT = aParam;
   207 	iTFT = aParam;
   278 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET4_3, "<<CPdpFsm::Set(TFT)");
       
   279     }
   208     }
   280 
   209 
   281 void CPdpFsm::Set(const TTFTOperationCode& aParam)
   210 void CPdpFsm::Set(const TTFTOperationCode& aParam)
   282     {
   211     {
   283 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET5_1, ">>CPdpFsm::Set(TFTOperationCode)");
       
   284 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET5_2, "Pdp ID %d",iPdpId);
       
   285 
       
   286 	iTFTOperationCode = aParam;
   212 	iTFTOperationCode = aParam;
   287 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET5_3, "<<CPdpFsm::Set(TFTOperationCode)");
       
   288     }
   213     }
   289 
   214 
   290 void CPdpFsm::Set(const RPacketContext::TDataChannelV2& aParam)
   215 void CPdpFsm::Set(const RPacketContext::TDataChannelV2& aParam)
   291     {
   216     {
   292 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET6_1, ">>CPdpFsm::Set(RPacketContext::TDataChannelV2)");
       
   293 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET6_2, "Pdp ID %d",iPdpId);
       
   294 
       
   295 	iDataChannelV2 = aParam;
   217 	iDataChannelV2 = aParam;
   296 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET6_3, "<<CPdpFsm::Set(RPacketContext::TDataChannelV2)");
       
   297     }
   218     }
   298 
   219 
   299 void CPdpFsm::Set(const RPacketContext::TContextStatus& aParam)
   220 void CPdpFsm::Set(const RPacketContext::TContextStatus& aParam)
   300     {
   221     {
   301 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET7_1, ">>CPdpFsm::Set(RPacketContext::TContextStatus)");
       
   302 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET7_2, "Pdp ID %d",iPdpId);
       
   303 
       
   304 	iContextStatus = aParam;
   222 	iContextStatus = aParam;
   305 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET7_3, "<<CPdpFsm::Set(RPacketContext::TContextStatus)");
       
   306     }
   223     }
   307 
   224 
   308 void CPdpFsm::Set(const TPacketDataConfigBase& aParam)
   225 void CPdpFsm::Set(const TPacketDataConfigBase& aParam)
   309     {
   226     {
   310 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET8_1, ">>CPdpFsm::Set(RPacketContext::TContextConfigGPRS)");
   227     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET_PACKETDATACONFIGBASE_1, "(TPacketDataConfigBase) for Packet Network [%d]", const_cast<TPacketDataConfigBase&>(aParam).ExtensionId());
   311 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET8_2, "Pdp ID %d",iPdpId);
   228 
   312 	
       
   313 	switch ((const_cast<TPacketDataConfigBase&>(aParam)).ExtensionId())
   229 	switch ((const_cast<TPacketDataConfigBase&>(aParam)).ExtensionId())
   314 	    {
   230 	    {
   315 	    case TPacketDataConfigBase::KConfigGPRS:
   231 	    case TPacketDataConfigBase::KConfigGPRS:
   316 	        Mem::Copy(const_cast<TUint8*>(iContextConfig.Ptr()), &aParam, sizeof(RPacketContext::TContextConfigGPRS));
   232 	        Mem::Copy(const_cast<TUint8*>(iContextConfig.Ptr()), &aParam, sizeof(RPacketContext::TContextConfigGPRS));
   317 	        break;
   233 	        break;
   322 
   238 
   323 	    case TPacketDataConfigBase::KConfigRel5:
   239 	    case TPacketDataConfigBase::KConfigRel5:
   324 	        Mem::Copy(const_cast<TUint8*>(iContextConfig.Ptr()), &aParam, sizeof(RPacketContext::TContextConfig_R5));
   240 	        Mem::Copy(const_cast<TUint8*>(iContextConfig.Ptr()), &aParam, sizeof(RPacketContext::TContextConfig_R5));
   325 	        break;
   241 	        break;
   326 	    }
   242 	    }
   327 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET8_3, "<<CPdpFsm::Set(RPacketContext::TContextConfigGPRS)");
       
   328     }
   243     }
   329 
   244 
   330 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY	
   245 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY	
   331 void CPdpFsm::Set(MPdpFsmEventHandler& aPdpFsmEventHandler)
   246 void CPdpFsm::Set(MPdpFsmEventHandler& aPdpFsmEventHandler)
   332     {
   247     {
   333 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET9_1, ">>CPdpFsm::Set(MPdpFsmEventHandler&)");
   248     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET_PDPFSMHANDLER_1, "(MPdpFsmEventHandler&)for context name [%S]", iDataChannelV2.iChannelId);
   334 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET9_2, "Pdp ID %d",iPdpId);
       
   335 	
   249 	
   336 	if (iPdpFsmEventHandler)
   250 	if (iPdpFsmEventHandler)
   337     	{
   251     	{
   338     	iPdpFsmEventHandler->Event(KContextDeleteEvent, KErrAbort);
   252     	iPdpFsmEventHandler->Event(KContextDeleteEvent, KErrAbort);
   339     	}
   253     	}
   340 	iPdpFsmEventHandler = &aPdpFsmEventHandler;
   254 	iPdpFsmEventHandler = &aPdpFsmEventHandler;
   341 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET9_3, "<<CPdpFsm::Set(MPdpFsmEventHandler&)");
       
   342     }
   255     }
   343 #endif  
   256 #endif  
   344 
   257 
   345 void CPdpFsm::EtelInput (EtelDriver::TEtelInput aOperation)
   258 void CPdpFsm::EtelInput (EtelDriver::TEtelInput aOperation)
   346     {
   259     {
   347 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_ETELINPUT_1, ">>CPdpFsm::EtelInput");
   260     OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_ETELINPUT_1, "for context name [%S] for ETEL input operation [%d]", iDataChannelV2.iChannelId, aOperation);	
   348 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_ETELINPUT_2, "Pdp ID %d",iPdpId);
       
   349 	
       
   350 	iEtelDriverInput->Input (iPdpId, aOperation);
   261 	iEtelDriverInput->Input (iPdpId, aOperation);
   351 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_ETELINPUT_3, "<<CPdpFsm::EtelInput");
       
   352     }
   262     }
   353 
   263 
   354 void CPdpFsm::EtelCancel (void)
   264 void CPdpFsm::EtelCancel (void)
   355     {
   265     {
   356 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_ETELCANCEL_1, ">>CPdpFsm::EtelCancel");
   266     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_ETELCANCEL_1, "for context id [%d]", iPdpId);	
   357 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_ETELCANCEL_2, "Pdp ID %d",iPdpId);
       
   358 	
       
   359 	iEtelDriverInput->CancelPdp (iPdpId);
   267 	iEtelDriverInput->CancelPdp (iPdpId);
   360 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_ETELCANCEL_3, "<<CPdpFsm::EtelCancel");
       
   361     }
   268     }
   362 
   269 
   363 void CPdpFsm::SpudInput (TInt aNotification, TInt aParam)
   270 void CPdpFsm::SpudInput (TInt aNotification, TInt aParam)
   364     {
   271     {
   365 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SPUDINPUT_1, ">>CPdpFsm::SpudInput");
   272     OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SPUDINPUT_1, "for context name [%S], Notification Event [%d], Error Code [%d]", iDataChannelV2.iChannelId, aNotification, aParam);   
   366 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SPUDINPUT_2, "Pdp ID %d",iPdpId);
   273 
   367 #ifndef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY	
   274 #ifndef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY	
   368 	iPdpFsmFactory->SpudInput (iPdpId, aNotification, aParam);
   275 	iPdpFsmFactory->SpudInput (iPdpId, aNotification, aParam);
   369 #else
   276 #else
   370     ASSERT(iPdpFsmEventHandler);
   277     ASSERT(iPdpFsmEventHandler);
   371     iPdpFsmEventHandler->Event(aNotification, aParam);
   278     iPdpFsmEventHandler->Event(aNotification, aParam);
   372     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SPUDINPUT_3, "<<CPdpFsm::SpudInput");
       
   373 #endif
   279 #endif
   374     }
   280     }
   375 
   281 
   376 // state change members
   282 // state change members
   377 
   283 
   378 void CPdpFsm::ChangeStateToInitialised(void)
   284 void CPdpFsm::ChangeStateToInitialised(void)
   379     {
   285     {
   380 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOINITIALISED_1, ">>CPdpFsm::ChangeStateToInitialised");
   286     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOINITIALISED_1, "for context id [%d]", iPdpId);	
   381 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOINITIALISED_2, "Pdp ID %d",iPdpId);
       
   382 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOINITIALISED_3, "New State : Initialised");
       
   383 	
       
   384 	iState = &iPdpFsmFactory->iStateInitialised;
   287 	iState = &iPdpFsmFactory->iStateInitialised;
   385 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOINITIALISED_4, "<<CPdpFsm::ChangeStateToInitialised");
       
   386     }
   288     }
   387 
   289 
   388 void CPdpFsm::ChangeStateToOpeningPhone(void)
   290 void CPdpFsm::ChangeStateToOpeningPhone(void)
   389     {
   291     {
   390 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPENINGPHONE_1, ">>CPdpFsm::ChangeStateToOpeningPhone");
   292     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPENINGPHONE_1, "for context id [%d]", iPdpId);	
   391 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPENINGPHONE_2, "Pdp ID %d",iPdpId);
       
   392 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPENINGPHONE_3, "New State : OpeningPhone");
       
   393 	
       
   394 	iState = &iPdpFsmFactory->iStateOpeningPhone;
   293 	iState = &iPdpFsmFactory->iStateOpeningPhone;
   395 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPENINGPHONE_4, "<<CPdpFsm::ChangeStateToOpeningPhone");
   294 	}
   396     }
       
   397 
   295 
   398 void CPdpFsm::ChangeStateToCreatingPrimary(void)
   296 void CPdpFsm::ChangeStateToCreatingPrimary(void)
   399     {
   297     {
   400 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGPRIMARY_1, ">>CPdpFsm::ChangeStateToCreatingPrimary");
   298     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGPRIMARY_1, "for context id [%d]", iPdpId);	
   401 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGPRIMARY_2, "Pdp ID %d",iPdpId);
       
   402 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGPRIMARY_3, "New State : CreatingPrimary");
       
   403 	
       
   404 	iState = &iPdpFsmFactory->iStateCreatingPrimary;
   299 	iState = &iPdpFsmFactory->iStateCreatingPrimary;
   405 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGPRIMARY_4, "<<CPdpFsm::ChangeStateToCreatingPrimary");
       
   406     }
   300     }
   407 
   301 
   408 void CPdpFsm::ChangeStateToActivatingPrimary(void)
   302 void CPdpFsm::ChangeStateToActivatingPrimary(void)
   409     {
   303     {
   410 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGPRIMARY_1, ">>CPdpFsm::ChangeStateToActivatingPrimary");
   304     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGPRIMARY_1, "for context id [%d]", iPdpId);
   411 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGPRIMARY_2, "Pdp ID %d",iPdpId);
       
   412 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGPRIMARY_3, "New State : ActivatingPrimary");
       
   413 	
       
   414 	iState = &iPdpFsmFactory->iStateActivatingPrimary;
   305 	iState = &iPdpFsmFactory->iStateActivatingPrimary;
   415 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGPRIMARY_4, "<<CPdpFsm::ChangeStateToActivatingPrimary");
       
   416     }
   306     }
   417 
   307 
   418 void CPdpFsm::ChangeStateToCreatingSecondary(void)
   308 void CPdpFsm::ChangeStateToCreatingSecondary(void)
   419     {
   309     {
   420 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGSECONDARY_1, ">>CPdpFsm::ChangeStateToCreatingSecondary");
   310     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGSECONDARY_1, "for context id [%d]", iPdpId);	
   421 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGSECONDARY_2, "Pdp ID %d",iPdpId);
       
   422 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGSECONDARY_3, "New State : CreatingSecondary");
       
   423 	
       
   424 	iState = &iPdpFsmFactory->iStateCreatingSecondary;
   311 	iState = &iPdpFsmFactory->iStateCreatingSecondary;
   425 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGSECONDARY_4, "<<CPdpFsm::ChangeStateToCreatingSecondary");
       
   426     }
   312     }
   427 
   313 
   428 void CPdpFsm::ChangeStateToCreatedSecondary(void)
   314 void CPdpFsm::ChangeStateToCreatedSecondary(void)
   429     {
   315     {
   430 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDSECONDARY_1, ">>CPdpFsm::ChangeStateToCreatedSecondary");
   316     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDSECONDARY_1, "for context id [%d]", iPdpId);	
   431 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDSECONDARY_2, "Pdp ID %d",iPdpId);
       
   432 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDSECONDARY_3, "New State : CreatedSecondary");
       
   433 	
       
   434 	iState = &iPdpFsmFactory->iStateCreatedSecondary;
   317 	iState = &iPdpFsmFactory->iStateCreatedSecondary;
   435 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDSECONDARY_4, "<<CPdpFsm::ChangeStateToCreatedSecondary");
       
   436     }
   318     }
   437 
   319 
   438 void CPdpFsm::ChangeStateToSettingTFT(void)
   320 void CPdpFsm::ChangeStateToSettingTFT(void)
   439     {
   321     {
   440 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGTFT_1, ">>CPdpFsm::ChangeStateToSettingTFT");
   322     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGTFT_1, "for context id [%d]", iPdpId);	
   441 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGTFT_2, "Pdp ID %d",iPdpId);
       
   442 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGTFT_3, "New State : SettingTFT");
       
   443 	
       
   444 	iState = &iPdpFsmFactory->iStateSettingTFT;
   323 	iState = &iPdpFsmFactory->iStateSettingTFT;
   445 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGTFT_4, "<<CPdpFsm::ChangeStateToSettingTFT");
       
   446     }
   324     }
   447 
   325 
   448 void CPdpFsm::ChangeStateToSettingQoS(void)
   326 void CPdpFsm::ChangeStateToSettingQoS(void)
   449     {
   327     {
   450 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGQOS_1, ">>CPdpFsm::ChangeStateToSettingQoS");
   328     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGQOS_1, "for context id [%d]", iPdpId);
   451 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGQOS_2, "Pdp ID %d",iPdpId);
       
   452 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGQOS_3, "New State : SettingQoS");
       
   453 	
       
   454 	iState = &iPdpFsmFactory->iStateSettingQoS;
   329 	iState = &iPdpFsmFactory->iStateSettingQoS;
   455 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSETTINGQOS_4, "<<CPdpFsm::ChangeStateToSettingQoS");
       
   456     }
   330     }
   457 
   331 
   458 void CPdpFsm::ChangeStateToActivatingSecondary(void)
   332 void CPdpFsm::ChangeStateToActivatingSecondary(void)
   459     {
   333     {
   460 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGSECONDARY_1, ">>CPdpFsm::ChangeStateToActivatingSecondary");
   334     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGSECONDARY_1, "for context id [%d]", iPdpId);
   461 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGSECONDARY_2, "Pdp ID %d",iPdpId);
       
   462 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGSECONDARY_3, "New State : ActivatingSecondary");
       
   463 	
       
   464 	iState = &iPdpFsmFactory->iStateActivatingSecondary;
   335 	iState = &iPdpFsmFactory->iStateActivatingSecondary;
   465 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGSECONDARY_4, "<<CPdpFsm::ChangeStateToActivatingSecondary");
       
   466     }
   336     }
   467 
   337 
   468 void CPdpFsm::ChangeStateToOpen(void)
   338 void CPdpFsm::ChangeStateToOpen(void)
   469     {
   339     {
   470 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPEN_1, ">>CPdpFsm::ChangeStateToOpen");
   340     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPEN_1, "for context name [%S]", iDataChannelV2.iChannelId);
   471 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPEN_2, "Pdp ID %d",iPdpId);
       
   472 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPEN_3, "New State : Open");
       
   473 	
       
   474 	iState = &iPdpFsmFactory->iStateOpen;
   341 	iState = &iPdpFsmFactory->iStateOpen;
   475 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOOPEN_4, "<<CPdpFsm::ChangeStateToOpen");
       
   476     }
   342     }
   477 
   343 
   478 void CPdpFsm::ChangeStateToChangingQoS(void)
   344 void CPdpFsm::ChangeStateToChangingQoS(void)
   479     {
   345     {
   480 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGQOS_1, ">>CPdpFsm::ChangeStateToChangingQoS");
   346     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGQOS_1, "for context name [%S]", iDataChannelV2.iChannelId);
   481 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGQOS_2, "Pdp ID %d",iPdpId);
       
   482 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGQOS_3, "New State : ChangingQoS");
       
   483 	
       
   484 	iState = &iPdpFsmFactory->iStateChangingQoS;
   347 	iState = &iPdpFsmFactory->iStateChangingQoS;
   485 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGQOS_4, "<<CPdpFsm::ChangeStateToChangingQoS");
       
   486     }
   348     }
   487 
   349 
   488 void CPdpFsm::ChangeStateToChangingTFT(void)
   350 void CPdpFsm::ChangeStateToChangingTFT(void)
   489     {
   351     {
   490 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGTFT_1, ">>CPdpFsm::ChangeStateToChangingTFT");
   352     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGTFT_1, "for context name [%S]", iDataChannelV2.iChannelId);
   491 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGTFT_2, "Pdp ID %d",iPdpId);
       
   492 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGTFT_3, "New State : ChangingTFT");
       
   493 	
       
   494 	iState = &iPdpFsmFactory->iStateChangingTFT;
   353 	iState = &iPdpFsmFactory->iStateChangingTFT;
   495 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCHANGINGTFT_4, "<<CPdpFsm::ChangeStateToChangingTFT");
       
   496     }
   354     }
   497 
   355 
   498 void CPdpFsm::ChangeStateToGettingNegQoS(void)
   356 void CPdpFsm::ChangeStateToGettingNegQoS(void)
   499     {
   357     {
   500 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOGETTINGNEGQOS_1, ">>CPdpFsm::ChangeStateToGettingNegQoS");
   358     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOGETTINGNEGQOS_1, "for context name [%S]", iDataChannelV2.iChannelId);
   501 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOGETTINGNEGQOS_2, "Pdp ID %d",iPdpId);
       
   502 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOGETTINGNEGQOS_3, "New State : GettingNegQoS");
       
   503 	
       
   504 	iState = &iPdpFsmFactory->iStateGettingNegQoS;
   359 	iState = &iPdpFsmFactory->iStateGettingNegQoS;
   505 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOGETTINGNEGQOS_4, "<<CPdpFsm::ChangeStateToGettingNegQoS");
   360     }
   506     }
       
   507 
       
   508 
       
   509 
   361 
   510 void CPdpFsm::ChangeStateToModifingActive(void)
   362 void CPdpFsm::ChangeStateToModifingActive(void)
   511     {
   363     {
   512 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOMODIFINGACTIVE_1, ">>CPdpFsm::ChangeStateToModifingActive");
   364     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOMODIFINGACTIVE_1, "for context name [%S]", iDataChannelV2.iChannelId);	
   513 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOMODIFINGACTIVE_2, "Pdp ID %d",iPdpId);
       
   514 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOMODIFINGACTIVE_3, "New State : ModifingActive");
       
   515 	
       
   516 	iState = &iPdpFsmFactory->iStateModifyingActive;
   365 	iState = &iPdpFsmFactory->iStateModifyingActive;
   517 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOMODIFINGACTIVE_4, "<<CPdpFsm::ChangeStateToModifingActive");
   366 	}
   518     }
       
   519 
   367 
   520 void CPdpFsm::ChangeStateToSuspended(void)
   368 void CPdpFsm::ChangeStateToSuspended(void)
   521     {
   369     {
   522 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSUSPENDED_1, ">>CPdpFsm::ChangeStateToSuspended");
   370     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSUSPENDED_1, "for context name [%S]", iDataChannelV2.iChannelId);
   523 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSUSPENDED_2, "Pdp ID %d",iPdpId);
       
   524 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSUSPENDED_3, "New State : Suspended");
       
   525 	
       
   526 	iState = &iPdpFsmFactory->iStateSuspended;
   371 	iState = &iPdpFsmFactory->iStateSuspended;
   527 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSUSPENDED_4, "<<CPdpFsm::ChangeStateToSuspended");
       
   528     }
   372     }
   529 
   373 
   530 void CPdpFsm::ChangeStateToClosing(void)
   374 void CPdpFsm::ChangeStateToClosing(void)
   531     {
   375     {
   532 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCLOSING_1, ">>CPdpFsm::ChangeStateToClosing");
   376     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCLOSING_1, "for context name [%S]", iDataChannelV2.iChannelId);
   533 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCLOSING_2, "Pdp ID %d",iPdpId);
       
   534 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCLOSING_3, "New State : Closing");
       
   535 	
       
   536 	iState = &iPdpFsmFactory->iStateClosing;
   377 	iState = &iPdpFsmFactory->iStateClosing;
   537 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCLOSING_4, "<<CPdpFsm::ChangeStateToClosing");
       
   538     }
   378     }
   539 
   379 
   540 void CPdpFsm::ChangeStateToStopping(void)
   380 void CPdpFsm::ChangeStateToStopping(void)
   541     {
   381     {
   542 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSTOPPING_1, ">>CPdpFsm::ChangeStateToStopping");
   382     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSTOPPING_1, "for context name [%S]", iDataChannelV2.iChannelId);
   543 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSTOPPING_2, "Pdp ID %d",iPdpId);
       
   544 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSTOPPING_3, "New State : Stopping");
       
   545 	
       
   546 	iState = &iPdpFsmFactory->iStateStopping;
   383 	iState = &iPdpFsmFactory->iStateStopping;
   547 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOSTOPPING_4, "<<CPdpFsm::ChangeStateToStopping");
       
   548     }
   384     }
   549     
   385     
   550 void CPdpFsm::ChangeStateToCreatingMbms(void)
   386 void CPdpFsm::ChangeStateToCreatingMbms(void)
   551 	{
   387 	{
   552 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGMBMS_1, ">>CPdpFsm::ChangeStateToCreatingMbms");
   388     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGMBMS_1, "for context id [%d]", iPdpId);
   553 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGMBMS_2, "Pdp ID %d",iPdpId);
       
   554 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGMBMS_3, "New State : Creating");
       
   555 	
       
   556 	iState = &iPdpFsmFactory->iStateCreatingMbms;
   389 	iState = &iPdpFsmFactory->iStateCreatingMbms;
   557 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATINGMBMS_4, "<<CPdpFsm::ChangeStateToCreatingMbms");
       
   558 	}
   390 	}
   559 	
   391 	
   560 void CPdpFsm::ChangeStateToActivatingMbms(void)
   392 void CPdpFsm::ChangeStateToActivatingMbms(void)
   561 	{
   393 	{
   562 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGMBMS_1, ">>CPdpFsm::ChangeStateToActivatingMbms");
   394     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGMBMS_1, "for context id [%d]", iPdpId);
   563 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGMBMS_2, "Pdp ID %d",iPdpId);
       
   564 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGMBMS_3, "New State : Activating");
       
   565 	
       
   566 	iState = &iPdpFsmFactory->iStateActivatingMbms;
   395 	iState = &iPdpFsmFactory->iStateActivatingMbms;
   567 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOACTIVATINGMBMS_4, "<<CPdpFsm::ChangeStateToActivatingMbms");
       
   568 	}
   396 	}
   569 
   397 
   570 void CPdpFsm::ChangeStateToCreatedMbms(void)
   398 void CPdpFsm::ChangeStateToCreatedMbms(void)
   571 	{
   399 	{
   572 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDMBMS_1, ">>CPdpFsm::ChangeStateToCreatingMbms");
   400     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDMBMS_1, "for context id [%d]", iPdpId);
   573 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDMBMS_2, "Pdp ID %d",iPdpId);
       
   574 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDMBMS_3, "New State : Created");
       
   575 	
       
   576 	iState = &iPdpFsmFactory->iStateCreatedMbms;
   401 	iState = &iPdpFsmFactory->iStateCreatedMbms;
   577 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_CHANGESTATETOCREATEDMBMS_4, "<<CPdpFsm::ChangeStateToCreatingMbms");
       
   578 	}
   402 	}
   579 
   403 
   580 
   404 
   581 	
   405 	
   582 void CPdpFsm::Get(RPacketMbmsContext::TContextConfigMbmsV1& aParam)
   406 void CPdpFsm::Get(RPacketMbmsContext::TContextConfigMbmsV1& aParam)
   583     {
   407     {
   584 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET9_1, ">>CPdpFsm::Get(RPacketMbmsContext::TContextConfigMbmsV1)");
       
   585 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET9_2, "Pdp ID %d",iPdpId);
       
   586 
       
   587 	aParam = iMbms;
   408 	aParam = iMbms;
   588 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET9_3, "<<CPdpFsm::Get(RPacketMbmsContext::TContextConfigMbmsV1)");
       
   589     }
   409     }
   590     
   410     
   591     
   411     
   592 void CPdpFsm::Set(const RPacketMbmsContext::TContextConfigMbmsV1& aParam)
   412 void CPdpFsm::Set(const RPacketMbmsContext::TContextConfigMbmsV1& aParam)
   593     {
   413     {
   594 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET10_1, ">>CPdpFsm::Get(RPacketMbmsContext::TContextConfigMbmsV1)");
       
   595 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET10_2, "Pdp ID %d",iPdpId);
       
   596 
       
   597 	iMbms = aParam ;
   414 	iMbms = aParam ;
   598 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET10_3, "<<CPdpFsm::Get(RPacketMbmsContext::TContextConfigMbmsV1)");
       
   599     }
   415     }
   600     
   416     
   601     
   417     
   602 void CPdpFsm::Get(TSessionOperatioInfo& aParam)
   418 void CPdpFsm::Get(TSessionOperatioInfo& aParam)
   603     {
   419     {
   604 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET10_1, ">>CPdpFsm::Get(Session)");
       
   605 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET10_2, "Pdp ID %d",iPdpId);
       
   606 
       
   607 	aParam = iSessionInfo;
   420 	aParam = iSessionInfo;
   608 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_GET10_3, "<<CPdpFsm::Get(Session)");
       
   609     }
   421     }
   610     
   422     
   611     
   423     
   612 void CPdpFsm::Set(const TSessionOperatioInfo& aParam)
   424 void CPdpFsm::Set(const TSessionOperatioInfo& aParam)
   613     {
   425     {
   614 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET11_1, ">>CPdpFsm::Get(Session)");
       
   615 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET11_2, "Pdp ID %d",iPdpId);
       
   616 
       
   617 	iSessionInfo = aParam ;
   426 	iSessionInfo = aParam ;
   618 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_SET11_3, "<<CPdpFsm::Get(Session)");
       
   619     }    
   427     }    
   620 
   428 
   621 void CPdpFsm::InitialiseContextConfig(TUint32 aConfigRel)
   429 void CPdpFsm::InitialiseContextConfig(TUint32 aConfigRel)
   622     {
   430     {
       
   431     OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSM_INITIALISECONTEXTCONFIG_1, "for context id [%d] of Packet Network [%d]", iPdpId, (TInt)aConfigRel);
       
   432 
   623     ASSERT(aConfigRel == TPacketDataConfigBase::KConfigGPRS
   433     ASSERT(aConfigRel == TPacketDataConfigBase::KConfigGPRS
   624         || aConfigRel == TPacketDataConfigBase::KConfigRel99Rel4
   434         || aConfigRel == TPacketDataConfigBase::KConfigRel99Rel4
   625         || aConfigRel == TPacketDataConfigBase::KConfigRel5);
   435         || aConfigRel == TPacketDataConfigBase::KConfigRel5);
   626     
   436     
   627     switch(aConfigRel)
   437     switch(aConfigRel)