Home · All Classes · Grouped Classes · Annotated · Functions

QModemServicePlugin Class Reference

The QModemServicePlugin class defines a base class for implementing vendor-specific modem plug-ins. More...

    #include <QModemServicePlugin>

Inherits QObject and QModemServicePluginInterface.

Public Functions

Additional Inherited Members


Detailed Description

The QModemServicePlugin class defines a base class for implementing vendor-specific modem plug-ins.

The plug-in should override supports() and create().

See GSM Modem Integration for more information on writing modem vendor plug-ins.

See also QModemServicePluginInterface and QModemService.


Member Function Documentation

QModemServicePlugin::QModemServicePlugin ( QObject * parent = 0 )

Create a vendor-specific modem plug-in instance and attach it to parent.

QModemServicePlugin::~QModemServicePlugin ()

Destruct a vendor-specific modem plug-in instance.

QModemService * QModemServicePlugin::create ( const QString & service, QSerialIODeviceMultiplexer * mux, QObject * parent )   [virtual]

Create a vendor-specific modem service handler called service and attach it to parent. The mux parameter specifies the serial device multiplexer to use for accessing the modem.

The default implementation returns null.

Reimplemented from QModemServicePluginInterface.

See also supports().

QStringList QModemServicePlugin::keys () const

Returns the list of keys for this plug-in.

bool QModemServicePlugin::supports ( const QString & manufacturer )   [virtual]

Returns true if this plug-in supports the given manufacturer string. The caller obtains the string by issuing AT+CGMI to the modem. If the plug-in supports manufacturer, the caller will then call create(). This function will typically contain code such as the following:

    return manufacturer.contains( "VENDORID" );

where VENDORID is a vendor-specific identifier that will appear in the output of AT+CGMI only for that vendor's modems.

The default implementation returns false.

Reimplemented from QModemServicePluginInterface.

See also create().


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3