Пример #1
0
void NeoModemService::initialize()
{
    // Disable cell broadcast, GTA04 modem probably does not know AT+CSCB commands
    suppressInterface < QCellBroadcast > ();

    if (!callProvider()) {
        setCallProvider(new NeoCallProvider(this));
    }

    QModemService::initialize();

    // Disable signal and battery polling, just do initial signal check
    indicators()->setPolling(false, true, false);
}
Пример #2
0
void FsoTelephonyService::initialize()
{
    // Create our Fso-specific overrides for the service interfaces

    // If the modem does not exist, then tell clients via QServiceChecker.
    if (!supports < QServiceChecker > ())
        addInterface(&service_checker);

    if (!supports < QPhoneRfFunctionality > ())
        addInterface(&rf_functionality);

    if (!supports < QNetworkRegistration > ())
        addInterface(&network_registration);

    if (!supports < QSupplementaryServices > ())
        addInterface(&suppl_services);

    if (!supports < QSMSSender > ())
        addInterface(&sms_sender);

    if (!supports < QSMSReader > ())
        addInterface(&sms_reader);

    if (!supports < QSimInfo > ())
        addInterface(&sim_info);

    /*
       if ( !supports<QSimToolkit>() )
       addInterface( new FsoSimToolkit( this ) );

       if ( !supports<QTelephonyConfiguration>() )
       addInterface( new FsoConfiguration( this ) );
     */

    if (!supports < QPhoneBook > ())
        addInterface(&phone_book);

    if (!callProvider())
        setCallProvider(&call_provider);

    // Call QModemService to create other interfaces that we didn't override.
    //QModemService::initialize();
}
Пример #3
0
void HtcuniversalModemService::initialize()
{
  HtcuniversalGsmPower::getInstance(this)->init();
  HtcuniversalGsmPower::getInstance(this)->enableNotifications();
  chat("AT+CSCA?");

  if (!supports<QPinManager>())
    addInterface(new HtcuniversalPinManager(this));

  if (!supports<QBandSelection>())
    addInterface(new HtcuniversalBandSelection(this));

  if (!callProvider())
    setCallProvider(new HtcuniversalCallProvider(this));

  if (!supports<QVibrateAccessory>())
    addInterface(new HtcuniversalVibrateAccessory(this));

  if (!supports<QCallVolume>())
    addInterface(new HtcuniversalCallVolume(this));

  if (!supports<QModemPreferredNetworkOperators>())
    addInterface(new HtcuniversalPreferredNetworkOperators(this));

  if (!supports<QModemNetworkRegistration>())
    addInterface(new HtcuniversalModemNetworkRegistration(this));

  if (!supports<QModemSimFiles>())
    addInterface(new QModemSimFiles(this));

  if (!supports<QModemCallSettings>())
    addInterface(new QModemCallSettings(this));

  if (!supports<QModemServiceNumbers>())
    addInterface(new QModemServiceNumbers(this));

  if (!supports<QPhoneRfFunctionality>())
    addInterface(new HtcuniversalRfFunctionality(this));

  QModemService::initialize();
}
Пример #4
0
void QTelephonyServiceDummy::initialize()
{
    if ( !supports<QSimInfo>() )
        addInterface( new QSimInfoDummy( service(), this ) );

    if ( !supports<QPhoneBook>() )
        addInterface( new QPhoneBookDummy( service(), this ) );

    if ( !supports<QNetworkRegistration>() )
        addInterface( new QNetworkRegistrationDummy( service(), this ) );

    if ( !supports<QPhoneRfFunctionality>() )
        addInterface( new QPhoneRfFunctionalityDummy( service(), this ) );

    if ( !supports<QPinManager>() )
        addInterface( new QPinManagerDummy( service(), this ) );

    if ( !callProvider() )
        setCallProvider( new QPhoneCallProviderDummy( service(), this ) );

    QTelephonyService::initialize();
}
Пример #5
0
/*!
    \reimp
*/
void QModemService::initialize()
{
    // If the modem does not exist, then tell clients via QServiceChecker.
    if ( !supports<QServiceChecker>() ) {
        QSerialIODevice *primary = d->mux->channel( "primary" );
        addInterface( new QServiceCheckerServer
            ( service(), primary->isValid(), this ) );
    }

    if ( !supports<QSimInfo>() )
        addInterface( new QModemSimInfo( this ) );

    if ( !supports<QPinManager>() )
        addInterface( new QModemPinManager( this ) );

    if ( !supports<QNetworkRegistration>() )
        addInterface( new QModemNetworkRegistration( this ) );

    if ( !supports<QPreferredNetworkOperators>() )
        addInterface( new QModemPreferredNetworkOperators( this ) );

    if ( !supports<QCallBarring>() )
        addInterface( new QModemCallBarring( this ) );

    if ( !supports<QCallForwarding>() )
        addInterface( new QModemCallForwarding( this ) );

    if ( !supports<QCallSettings>() )
        addInterface( new QModemCallSettings( this ) );

    if ( !supports<QSMSReader>() )
        addInterface( new QModemSMSReader( this ) );

    if ( !supports<QSMSSender>() )
        addInterface( new QModemSMSSender( this ) );

    if ( !supports<QSimToolkit>() )
        addInterface( new QModemSimToolkit( this ) );

    if ( !supports<QSimFiles>() )
        addInterface( new QModemSimFiles( this ) );

    if ( !supports<QSimGenericAccess>() )
        addInterface( new QModemSimGenericAccess( this ) );

    if ( !supports<QPhoneBook>() )
        addInterface( new QModemPhoneBook( this ) );

    if ( !supports<QCellBroadcast>() )
        addInterface( new QModemCellBroadcast( this ) );

    if ( !supports<QServiceNumbers>() )
        addInterface( new QModemServiceNumbers( this ) );

    if ( !supports<QSupplementaryServices>() )
        addInterface( new QModemSupplementaryServices( this ) );

    if ( !supports<QTelephonyConfiguration>() )
        addInterface( new QModemConfiguration( this ) );

    if ( !supports<QPhoneRfFunctionality>() )
        addInterface( new QModemRfFunctionality( this ) );

    if ( !supports<QVibrateAccessory>() )
        addInterface( new QModemVibrateAccessory( this ) );

    if ( !supports<QGprsNetworkRegistration>() )
        addInterface( new QModemGprsNetworkRegistration( this ) );

    if ( !supports<QCallVolume>() )
        addInterface( new QModemCallVolume( this ) );

    // Create a default modem call provider if necessary.
    if ( !callProvider() )
        setCallProvider( new QModemCallProvider( this ) );

    QTelephonyService::initialize();
}