equal
deleted
inserted
replaced
192 |
192 |
193 iImplementationUid = call->ImplementationUid(); |
193 iImplementationUid = call->ImplementationUid(); |
194 |
194 |
195 iConferenceCall = iPluginManager.GetPluginL( |
195 iConferenceCall = iPluginManager.GetPluginL( |
196 call->ImplementationUid() )->NewConferenceL( ServiceId(), *this ); |
196 call->ImplementationUid() )->NewConferenceL( ServiceId(), *this ); |
197 |
197 |
198 if(iConferenceCall) |
198 if(iConferenceCall) |
199 { |
199 { |
200 iConferenceCall->AddCallL( &call->GetCCPCall() ); |
200 iConferenceCall->AddCallL( &call->GetCCPCall() ); |
201 } |
201 } |
202 else |
202 else |
284 RPointerArray<MCCPCall> array; |
284 RPointerArray<MCCPCall> array; |
285 iConferenceCall->GetCallArray( array ); |
285 iConferenceCall->GetCallArray( array ); |
286 |
286 |
287 for( TInt i = 0; i < array.Count(); i++ ) |
287 for( TInt i = 0; i < array.Count(); i++ ) |
288 { |
288 { |
|
289 // *call ownership is not transfered. |
289 const CCCECall* call = iCallContainer.GetCall( array[i] ); |
290 const CCCECall* call = iCallContainer.GetCall( array[i] ); |
290 |
291 |
291 // Check if cce call matching to ccp call is available |
292 // Check if cce call matching to ccp call is available |
292 iCallArray.Append( call ); |
293 iCallArray.Append( call ); // Ignore return value; |
293 iCallParameters->SetServiceId( call->ServiceId() ); |
294 iCallParameters->SetServiceId( call->ServiceId() ); |
294 |
295 |
295 CCELOGSTRING("CCCEConferenceCall:: Call added to conferencecall"); |
296 CCELOGSTRING("CCCEConferenceCall:: Call added to conferencecall"); |
296 } |
297 } |
297 |
298 |
388 // --------------------------------------------------------------------------- |
389 // --------------------------------------------------------------------------- |
389 // |
390 // |
390 TInt CCCEConferenceCall::GetCallArray( RPointerArray<MCCECall>& aCallArray ) |
391 TInt CCCEConferenceCall::GetCallArray( RPointerArray<MCCECall>& aCallArray ) |
391 { |
392 { |
392 TInt err( KErrNotFound ); |
393 TInt err( KErrNotFound ); |
393 |
394 TInt count = iCallArray.Count(); |
394 for (TInt a = 0; a < iCallArray.Count(); a++) |
395 aCallArray.Reserve(count); |
395 { |
396 for (TInt a = 0; a < count; a++) |
396 aCallArray.Append( iCallArray[a] ); |
397 { |
397 err = KErrNone; |
398 err= aCallArray.Append( iCallArray[a] ); |
398 } |
399 } |
399 |
|
400 |
|
401 return err; |
400 return err; |
402 } |
401 } |
403 |
402 |
404 // --------------------------------------------------------------------------- |
403 // --------------------------------------------------------------------------- |
405 // ConferenceCallEventOccurred() |
404 // ConferenceCallEventOccurred() |
629 // --------------------------------------------------------------------------- |
628 // --------------------------------------------------------------------------- |
630 // CallDuration() |
629 // CallDuration() |
631 // --------------------------------------------------------------------------- |
630 // --------------------------------------------------------------------------- |
632 // |
631 // |
633 TTimeIntervalSeconds CCCEConferenceCall::CallDuration() const |
632 TTimeIntervalSeconds CCCEConferenceCall::CallDuration() const |
634 { |
633 { |
635 return iCCEDurationTimer->NumberOfBeats(); |
634 return iCCEDurationTimer->NumberOfBeats(); |
636 } |
635 } |
637 |
636 |
638 // End of file |
637 // End of file |