Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QAdviceOfCharge class provides advice of charge information about a user's phone account. More...
#include <QAdviceOfCharge>
Inherits QCommInterface.
Inherited by QModemAdviceOfCharge.
The QAdviceOfCharge class provides advice of charge information about a user's phone account.
The 3GPP TS 02.86 Advice of Charge supplementary service provides the phone with the information to produce an estimate of the cost of the service used. This telephony interface only applies to GSM-style mobile telephone networks.
Charges are indicated for the call, or calls, in progress when mobile originated or for the roaming leg only when mobile terminated. Any charges for non-call related transactions, and for certain supplementary services, such as Call Forwarding are not indicated.
The phone will receive at the beginning of each call (and as necessary during the call) a message, the Charge Advice Information. This message contains the elements which together define the rate at which the call is to be charged, time dependence, data dependence and for unit increments. The message is delivered to client applications via the currentCallMeter() signal in this class.
The charge information is reported in units, which vary depending upon the operator and the user's home currency. When the client calls requestPricePerUnit(), the service will respond with a pricePerUnit() signal to report the international currency name (for example, USD, EUR, AUD, GBP, DEM, etc) and the price per unit.
In addition to the call-specific call meter, there is an accumulated call meter that keeps track of all calls made since the last time the meter was reset with requestAccumulatedCallMeter().
The client can set a maximum accumulated call meter value with setAccumulatedCallMeterMaximum(). When the accumulated call meter is within 30 seconds of expiry, the callMeterMaximumWarning() signal will be emitted to warn the user that their account is almost depleted.
See also QCommInterface.
Construct a new advice of charge object for service and attach it to parent. The object will be created in client mode if mode is Client, or server mode otherwise.
If service is empty, this class will use the first available service that supports advice of charge. If there is more than one service that supports advice of charge, the caller should enumerate them with QCommServiceManager::supports() and create separate QAdviceOfCharge objects for each.
See also QCommServiceManager::supports().
Destroy this advice of charge object.
Signal that is emitted to report the value of the accumulated call meter in units (zero if not set).
See also requestAccumulatedCallMeter() and resetAccumulatedCallMeter().
Signal that is emitted in response to requestAccumulatedCallMeterMaximum() to report the maximum value that the call meter can obtain. The value will be zero if the call meter is unlimited, or not configured.
See also setAccumulatedCallMeterMaximum(), requestAccumulatedCallMeterMaximum(), and callMeterMaximumWarning().
Signal that is emitted when there is approximately 30 seconds of call time remaining, or there is less than 30 seconds of call time remaining when starting a new call.
See also accumulatedCallMeterMaximum() and requestAccumulatedCallMeterMaximum().
Signal that is emitted to report the value of the current call meter in units (zero if not set). If explicitRequest is true, then the signal resulted because of a call to requestCurrentCallMeter(). If explicitRequest is false, then the signal resulted because of an unsolicited notification from the modem of a change in the call meter.
See also requestCurrentCallMeter().
Signal that is emitted to response to requestPricePerUnit(). The currency parameter will be a three-character currency code (for example, USD, EUR, AUD, GBP or DEM). The unitPrice parameter will be the price per unit, with a dot used as a decimal separator (for example, 2.66).
The price is reported as a string to give maximum flexibility to client applications to convert it into a fixed-point or floating-point value to perform unit calculations.
If currency is an empty string, then the price per unit information could not be obtained.
See also setPricePerUnit() and requestPricePerUnit().
Request the accumulated call meter value, which will be reported via the accumulatedCallMeter() signal.
See also accumulatedCallMeter(), requestAccumulatedCallMeterMaximum(), and resetAccumulatedCallMeter().
Request the accumulated call meter maximum value, which will be reported via the accumulatedCallMeterMaximum() signal.
See also accumulatedCallMeterMaximum(), requestAccumulatedCallMeter(), setAccumulatedCallMeterMaximum(), and callMeterMaximumWarning().
Request the current call meter value, which will be reported via the currentCallMeter() signal.
See also currentCallMeter().
Request the price per unit information, which will be reported via the pricePerUnit() signal.
See also pricePerUnit() and setPricePerUnit().
Reset the accumulated call meter, with password supplying the SIM PIN2 value. The resetAccumulatedCallMeterResult() signal will be emitted to report the result of resetting the accumulated call meter.
See also accumulatedCallMeter(), requestAccumulatedCallMeter(), and resetAccumulatedCallMeterResult().
Signal that is emitted in response to resetAccumulatedCallMeter() to report the result of the operation.
See also resetAccumulatedCallMeter() and requestAccumulatedCallMeter().
Sets the accumulated call meter maximum value, with password supplying the SIM PIN2 value. The setAccumulatedCallMeterMaximumResult() signal will be emitted to report the result of setting the accumulated call meter maximum value.
See also requestAccumulatedCallMeterMaximum(), accumulatedCallMeterMaximum(), callMeterMaximumWarning(), and setAccumulatedCallMeterMaximumResult().
Signal that is emitted in response to setAccumulatedCallMeterMaximum() to report the result of the operation.
See also setAccumulatedCallMeterMaximum() and requestAccumulatedCallMeterMaximum().
Sets the price per unit information to unitPrice in currency, with password supplying the SIM PIN2 value. The setPricePerUnit() signal will be emitted to report the result of setting the price per unit.
See also pricePerUnit() and setPricePerUnitResult().
Signal that is emitted in response to setPricePerUnit() to report the result of the operation.
See also setPricePerUnit() and requestPricePerUnit().
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |