/*! \internal */ QPhoneCall DialerControl::createCall( const QString& callType ) { QPhoneCall c = mCallManager->create(callType); c.connectStateChanged( this, SLOT(callStateChanged(QPhoneCall)) ); c.connectPendingTonesChanged( this, SIGNAL(pendingTonesChanged(QPhoneCall)) ); c.connectRequestFailed( this, SIGNAL(requestFailed(QPhoneCall,QPhoneCall::Request)) ); return c; }
void DialerControl::newCall( const QPhoneCall& call ) { QPhoneCall c = call; c.connectStateChanged( this, SLOT(callStateChanged(QPhoneCall)) ); c.connectPendingTonesChanged( this, SIGNAL(pendingTonesChanged(QPhoneCall)) ); emit callCreated( c ); doActiveCalls(); callStateChanged( call ); //force an update }