Exemple #1
0
/*! \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;
}
Exemple #2
0
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
}