162 void CConnection::HandleConnectionInfoL(CConnectionInfo*& aInfo,TInt error) |
162 void CConnection::HandleConnectionInfoL(CConnectionInfo*& aInfo,TInt error) |
163 { |
163 { |
164 TInt32 transId = this->TransactionID(); |
164 TInt32 transId = this->TransactionID(); |
165 iReadConnectionInfo = NULL; |
165 iReadConnectionInfo = NULL; |
166 |
166 |
167 if(TSysRequest::ENotification == RequestType()) |
167 if(TSysRequest::ENotification == RequestType() ) |
168 { |
168 { |
169 iConnectionInfoArray.AppendL(aInfo); |
169 if(!error) |
170 if( !iConnectionInit ) |
170 { |
171 { |
171 iConnectionInfoArray.AppendL(aInfo); |
172 CConnectionInfo* conninfo = aInfo->CopyL(); |
172 if( !iConnectionInit ) |
|
173 { |
|
174 CConnectionInfo* conninfo = aInfo->CopyL(); |
|
175 TRAP_IGNORE(SystemObserver()->HandleResponseL(*iEntity, *iKey, |
|
176 conninfo, transId, RequestType(), error)); |
|
177 } |
|
178 } |
|
179 else |
|
180 { |
173 TRAP_IGNORE(SystemObserver()->HandleResponseL(*iEntity, *iKey, |
181 TRAP_IGNORE(SystemObserver()->HandleResponseL(*iEntity, *iKey, |
174 conninfo, transId, RequestType(), error)); |
182 NULL, transId, RequestType(), error)); |
|
183 |
175 } |
184 } |
176 } |
185 } |
177 else |
186 else |
178 { |
187 { |
179 //Inc index. |
188 //Inc index. |
236 // |
245 // |
237 void CConnection::EventL(const CConnMonEventBase& aEvent) |
246 void CConnection::EventL(const CConnMonEventBase& aEvent) |
238 { |
247 { |
239 TUint connectionId =0; |
248 TUint connectionId =0; |
240 CReadConnectionInfo* rdConnectionInfo = NULL; |
249 CReadConnectionInfo* rdConnectionInfo = NULL; |
|
250 |
241 switch( aEvent.EventType() ) |
251 switch( aEvent.EventType() ) |
242 { |
252 { |
243 case EConnMonCreateConnection: |
253 case EConnMonCreateConnection: |
244 iConnectionInit = EFalse; |
254 iConnectionInit = EFalse; |
245 CConnMonCreateConnection* eventCreate; |
255 CConnMonCreateConnection* eventCreate; |
353 { |
363 { |
354 CConnectionInfo* connectionInfo=NULL; |
364 CConnectionInfo* connectionInfo=NULL; |
355 |
365 |
356 TInt error(iStatus.Int()); |
366 TInt error(iStatus.Int()); |
357 if(error >= KErrNone) |
367 if(error >= KErrNone) |
358 { |
368 { |
359 switch(iState) |
369 switch(iState) |
360 { |
370 { |
361 case EInitial: |
371 case EInitial: |
362 iConnMon.GetUintAttribute(iConnectionID, 0, KIAPId, iIAPId, iStatus); |
372 iConnMon.GetUintAttribute(iConnectionID, 0, KIAPId, iIAPId, iStatus); |
363 iState = EIAPId; |
373 iState = EIAPId; |