Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QSignalSourceProvider class provides an interface for signal sources to integrate into Qtopia. More...
#include <QSignalSourceProvider>
Inherits QSignalSource.
Inherited by DefaultSignal.
The QSignalSourceProvider class provides an interface for signal sources to integrate into Qtopia.
Signal sources are components that provide radio signal details to Qtopia. A signal source could be an internal modem monitoring the GSM/3G network signal or a wireless LAN interface on VoIP devices. QSignalSource allows applications to query the status of such signals.
Every device wanting to publish a new signal source should create a QSignalSourceProvider instance. This will create a new signal source in Qt Extended which can be accessed via the QSignalSource class. The setAvailability() function should be used to determine the general availability and setSignalStrength() should be called when indicating the exact strength of the signal as a percentage of the maximum strength.
The following code creates a signal source for a PCMCIA based WLAN card which has a signal strength of 80% of its maximum value.
QSignalSourceProvider* provider = new QSignalSourceProvider( "wlan", "pcmciaCard" ); provider->setSignalStrength( 80 ); provider->setAvailability( QSignalSource::Available );
See also QSignalSource and DefaultSignal.
Creates a new QSignalSourceProvider with the given type, id and parent. The constructed provider immediately becomes visible to Qt Extended as NotAvailable signal source.
See also QSignalSource.
Destroys the QSignalSourceProvider instance and removes information about the signal source from Qtopia.
Sets the availability of the signal source.
See also QSignalSource.
Sets the signal source strength as a percentage of the maximum strength. If the signal strength is not available strength should be set to -1.
See also QSignalSource.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |