Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QModemIndicators class supports indicators for signal quality, battery charge, etc. More...
#include <QModemIndicators>
Inherits QObject.
The QModemIndicators class supports indicators for signal quality, battery charge, etc.
Modem vendor plug-ins might have proprietary notifications for reporting this information. When such a notification arrives, the plug-in should call setSignalQuality(), setBatteryCharge(), etc.
The modem vendor plug-in will obtain an instance of this class by calling QModemService::indicators().
See also QModemService.
This enum defines the current charging state of the battery, using the values defined by 3GPP TS 27.007.
Constant | Value | Description |
---|---|---|
QModemIndicators::PoweredByBattery | 0 | Currently powered by the battery. |
QModemIndicators::NotPoweredByBattery | 1 | Battery is connected, but not powering the phone. |
QModemIndicators::NoBattery | 2 | No battery connected. |
QModemIndicators::PowerFault | 3 | There is a power fault and calls are inhibited. |
This enum defines the full status of the incoming SMS message store.
Constant | Value | Description |
---|---|---|
QModemIndicators::SmsMemoryOK | 0 | The store has slots available to receive new messages. |
QModemIndicators::SmsMemoryFull | 1 | The store is full and cannot accept new messages. |
QModemIndicators::SmsMemoryMessageRejected | 2 | The store is full and a new message was just rejected. |
Construct a modem indicator object for service. Normally, a modem vendor plug-in will call QModemService::indicators().
Destroy this modem indicator object.
Report an unsolicited battery charge value and state. The maxValue parameter indicates the maximum value for the valid range of values. e.g. if value can vary between 0 and 100, then maxValue will be 100.
If value is -1, then it indicates that the battery charge is currently undetectable.
This function is typically called by modem vendor plug-ins that have a proprietary command for reporting the current battery charge. If the modem vendor plug-in does not call this function, the default implementation will poll the AT+CBC command for battery charge.
Client applications get access to the battery charge value using the QPowerSource class.
See also QPowerSource.
Sets the network time information to time, zone, and dst. The time parameter indicates the time from the network in UTC, as seconds past midnight, 1 Jan 1970.
The zone parameter indicates the number of minutes east of GMT. The dst parameter indicates the number of minutes of daylight savings adjustment that have been applied to zone.
The parameter values are placed into the value space as /Telephony/Status/Time, /Telephony/Status/TimeZone, and /Telephony/Status/TimeZoneDST. In addition, the value space item /Telephony/Status/TimeTimeStamp will be set to the current time on the phone, also in UTC.
The values of Time and TimeTimeStamp in the value space can be used to determine the network time at some point in the future relative to the current time on the phone. Subtract TimeTimeStamp from the current time and add it to Time to determine the current network time.
Sets the network time zone information to zone and dst. The zone parameter indicates the number of minutes east of GMT. The dst parameter indicates the number of minutes of daylight savings adjustment that have been applied to zone.
The parameter values are placed into the value space as /Telephony/Status/TimeZone and /Telephony/Status/TimeZoneDST.
This function is deprecated in Qtopia 4.3 an later. Use setNetworkTime() instead.
See also setNetworkTime().
Report an unsolicited signal quality value. The maxValue parameter indicates the maximum value for the valid range of values. e.g. if value can vary between 0 and 31, then maxValue will be 31.
If value is -1, then it indicates that the signal quality is currently undetectable (e.g. no network).
This function is typically called by modem vendor plug-ins that have a proprietary command for reporting the current signal quality. If the modem vendor plug-in does not call this function, the default implementation will poll the AT+CSQ command for signal quality.
Client applications get access to the signal quality value using the QSignalSource class.
See also QSignalSource.
Sets the SMS memory full indicator to value.
Client applications get access to the SMS memory full indicator by querying the /Telephony/Status/SMSMemoryFull value space item.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |