equal
deleted
inserted
replaced
927 return reqEntry; |
927 return reqEntry; |
928 } |
928 } |
929 return NULL; |
929 return NULL; |
930 } |
930 } |
931 |
931 |
932 /* |
|
933 EXPORT_C TInt CPhoneBase::FindSessionByTsyHandle(const TTsyReqHandle aTsyReqHandle) |
932 EXPORT_C TInt CPhoneBase::FindSessionByTsyHandle(const TTsyReqHandle aTsyReqHandle) |
934 { |
933 { |
935 CReqEntry* reqEntry = FindByTsyHandle(aTsyReqHandle); |
934 CReqEntry* reqEntry = FindByTsyHandle(aTsyReqHandle); |
936 if (!reqEntry) |
935 if (!reqEntry) |
937 { |
936 { |
950 { |
949 { |
951 return KErrNotFound; |
950 return KErrNotFound; |
952 } |
951 } |
953 return reqEntry->iMessage.Int3(); |
952 return reqEntry->iMessage.Int3(); |
954 } |
953 } |
955 */ |
954 |
956 void CPhoneBase::UpdateBuffer(CReqEntry* aUpdatedReqEntry,CReqEntry* aReqEntry) |
955 void CPhoneBase::UpdateBuffer(CReqEntry* aUpdatedReqEntry,CReqEntry* aReqEntry) |
957 // |
956 // |
958 // Is passed both the TSY-updated request entry (which may be multi-buffered or not) |
957 // Is passed both the TSY-updated request entry (which may be multi-buffered or not) |
959 // and another request entry which is to have the data copied into it (which again may or may |
958 // and another request entry which is to have the data copied into it (which again may or may |
960 // not be multi-buffered) copies the latest data into the target request entry. |
959 // not be multi-buffered) copies the latest data into the target request entry. |
1355 case EInterestCategoryStandard: |
1354 case EInterestCategoryStandard: |
1356 iDeliveryTimer.After( iStatus, iTimeSlice ); |
1355 iDeliveryTimer.After( iStatus, iTimeSlice ); |
1357 SetActive(); |
1356 SetActive(); |
1358 break; |
1357 break; |
1359 case EInterestCategoryDefault: |
1358 case EInterestCategoryDefault: |
1360 // wait on default client (no timeout) //TODO: What if the default client doesn't respond? (Neil) |
1359 // wait on default client (no timeout) |
1361 break; |
1360 break; |
1362 default: |
1361 default: |
1363 // No more clients |
1362 // No more clients |
1364 Clear(); |
1363 Clear(); |
1365 } // end switch |
1364 } // end switch |
1459 } |
1458 } |
1460 |
1459 |
1461 TBool CMmDeliveryObject::DeliveryInProgress() const |
1460 TBool CMmDeliveryObject::DeliveryInProgress() const |
1462 { |
1461 { |
1463 // In the case of delivery to the default client we won't be active when |
1462 // In the case of delivery to the default client we won't be active when |
1464 // delivery is carried out as no timeout is used for the default client - |
1463 // delivery is carried out as no timeout is used for the default client |
1465 // TODO is it correct that the default client should have no timeout? |
|
1466 return (IsActive() || iCurrentReq); |
1464 return (IsActive() || iCurrentReq); |
1467 } |
1465 } |
1468 |
1466 CTelObject::TReqMode CMmDeliveryObject::GetReqMode()const |
|
1467 { |
|
1468 return iReqMode; |
|
1469 } |
1469 TInt CMmDeliveryObject::ClientsDecision( const RMessage2& aMessage, CTelSession* aSession, TBool aAccepted ) |
1470 TInt CMmDeliveryObject::ClientsDecision( const RMessage2& aMessage, CTelSession* aSession, TBool aAccepted ) |
1470 { |
1471 { |
1471 if (!DeliveryInProgress()) |
1472 if (!DeliveryInProgress()) |
1472 { |
1473 { |
1473 return KErrTimedOut; |
1474 return KErrTimedOut; |