Ejemplo n.º 1
0
Thread::Thread( QObject * const parent )
    : QThread( parent )
{
    // we need a class that receives signals from other threads and emits a signal in response
    m_shutDownHelper = new QSignalMapper;
    m_shutDownHelper->setMapping( this, 0 );
    connect( this, SIGNAL(started()), this, SLOT(setReadyStatus()), Qt::DirectConnection );
    connect( this, SIGNAL(aboutToStop()), m_shutDownHelper, SLOT(map()));
}
Ejemplo n.º 2
0
/* Moves to Ready state if it can. */
void CellModemManager::tryDoReady()
{
    if(Initializing2 != state() && AerialOff != state())
        return;

    if(QTelephony::RegistrationNone != d->m_regState) {
        if(QPhoneRfFunctionality::Full == d->m_rfFunc->level()) {
            doStateChanged(Ready);
            setReadyStatus();
            doAutoRegister();
        }
    }
}