예제 #1
0
/*!
    Activate a specific call with the modem identifier \a id.
    This will typically only work with GSM calls that set the
    QPhoneCall::modemIdentifier() value.  It is used to implement
    the GSM \c{2x SEND} key sequence where \c{x} is the identifier.
*/
void DialerControl::activateCall( int id )
{
    QPhoneCall call = callManager().fromModemIdentifier(id);
    if ( !call.isNull() )
        call.activate(QPhoneCall::CallOnly);
}
예제 #2
0
/*!
    End a specific call with the modem identifier \a id.
    This will typically only work with GSM calls that set the
    QPhoneCall::modemIdentifier() value.  It is used to implement
    the GSM \c{1x SEND} key sequence where \c{x} is the identifier.
*/
void DialerControl::endCall(int id)
{
    QPhoneCall call = callManager().fromModemIdentifier(id);
    if ( !call.isNull() )
        call.hangup(QPhoneCall::CallOnly);
}