convergedcallengine/cce/src/ccceconferencecall.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
   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.
       
   290             const CCCECall* call = iCallContainer.GetCall( array[i] );
   289             const CCCECall* call = iCallContainer.GetCall( array[i] );
   291             
   290             
   292             // Check if cce call matching to ccp call is available
   291             // Check if cce call matching to ccp call is available
   293             iCallArray.Append( call ); // Ignore return value;
   292             iCallArray.Append( call );
   294             iCallParameters->SetServiceId( call->ServiceId() );
   293             iCallParameters->SetServiceId( call->ServiceId() );
   295                 
   294                 
   296             CCELOGSTRING("CCCEConferenceCall:: Call added to conferencecall");
   295             CCELOGSTRING("CCCEConferenceCall:: Call added to conferencecall");
   297             }
   296             }
   298 
   297 
   389 // ---------------------------------------------------------------------------
   388 // ---------------------------------------------------------------------------
   390 //
   389 //
   391 TInt CCCEConferenceCall::GetCallArray( RPointerArray<MCCECall>& aCallArray )
   390 TInt CCCEConferenceCall::GetCallArray( RPointerArray<MCCECall>& aCallArray )
   392     {
   391     {
   393     TInt err( KErrNotFound );
   392     TInt err( KErrNotFound );
   394     TInt count = iCallArray.Count();
   393     
   395     aCallArray.Reserve(count);
   394     for (TInt a = 0; a < iCallArray.Count(); a++)
   396     for (TInt a = 0; a < count; a++)
   395         {
   397         {
   396         aCallArray.Append( iCallArray[a] );
   398         err= aCallArray.Append( iCallArray[a] );
   397         err = KErrNone;
   399         }
   398         }
       
   399 
       
   400     
   400     return err;
   401     return err;
   401     }
   402     }
   402 
   403 
   403 // ---------------------------------------------------------------------------
   404 // ---------------------------------------------------------------------------
   404 // ConferenceCallEventOccurred()
   405 // ConferenceCallEventOccurred()
   628 // ---------------------------------------------------------------------------
   629 // ---------------------------------------------------------------------------
   629 // CallDuration()
   630 // CallDuration()
   630 // ---------------------------------------------------------------------------
   631 // ---------------------------------------------------------------------------
   631 // 
   632 // 
   632 TTimeIntervalSeconds CCCEConferenceCall::CallDuration() const
   633 TTimeIntervalSeconds CCCEConferenceCall::CallDuration() const
   633     {
   634 	{
   634     return iCCEDurationTimer->NumberOfBeats();
   635     return iCCEDurationTimer->NumberOfBeats();
   635     }
   636 	}
   636     
   637     
   637 // End of file
   638 // End of file