コード例 #1
0
ファイル: vendor_neo.cpp プロジェクト: Camelek/qtmoko
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
ファイル: fsotelephonyservice.cpp プロジェクト: Artox/qtmoko
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
ファイル: qmodemservice.cpp プロジェクト: Fale/qtmoko
/*!
    \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();
}