summaryrefslogtreecommitdiffstats
path: root/doc/call-meter-api.txt
diff options
context:
space:
mode:
authorDenis Kenzior <denis.kenzior@intel.com>2009-09-02 14:22:26 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-09-02 14:31:17 -0500
commitfd701792e79e1f1e661ad878d2e1b528fbbcf0aa (patch)
treedd7014d840bb4a4e62170c867cccf07b31f7d047 /doc/call-meter-api.txt
parent950a7650132fc5f5c48b7049e6c48beceb6f2056 (diff)
downloadofono-fd701792e79e1f1e661ad878d2e1b528fbbcf0aa.tar.bz2
Add call-meter api doc
Diffstat (limited to 'doc/call-meter-api.txt')
-rw-r--r--doc/call-meter-api.txt77
1 files changed, 77 insertions, 0 deletions
diff --git a/doc/call-meter-api.txt b/doc/call-meter-api.txt
new file mode 100644
index 00000000..045343bc
--- /dev/null
+++ b/doc/call-meter-api.txt
@@ -0,0 +1,77 @@
+Call Meter hierarchy
+===============
+Service org.ofono
+Interface org.ofono.CallMeter
+Object path [variable prefix]/{modem0,modem1,...}
+
+Methods dict GetProperties()
+
+ Contains the properties for this object.
+
+ void SetProperty(string property, variant value,
+ string password)
+
+ Sets the property to value specified in the
+ call parameter. The last parameter is used
+ to pass the SIM PIN2 code which may be
+ required by the SIM.
+
+ void Reset(string password)
+
+ Attempts to reset the Accumulated Call Meter.
+ Reseting this value requires SIM PIN2, provided
+ by the password parameter.
+
+Signals PropertyChanged(string property, variant value)
+
+ Signal is emitted whenever a property has changed.
+ The new value is passed as the signal argument.
+
+ NearMaximumWarning()
+
+ Emitted shortly before the ACM (Accumulated Call
+ Meter) maximum values is reached. The warning is
+ issued approximately when 30 seconds call time
+ remains or when starting a call with less than
+ 30 seconds remaining.
+
+Properties uint32 CallMeter [readonly]
+
+ Contains the current call meter value from the ME.
+ The values are in 24-bit range, counted in home
+ units.
+
+ uint32 AccumulatedCallMeter [readonly]
+
+ Contains the Accumulated Call Meter (ACM) value
+ from the SIM. When the AccumulatedCallMeter
+ value reaches AccumulatedCallMeterMaximum value,
+ no further calls can be made until the ACM
+ value is reset. Reset is accomplished using
+ the Reset() function.
+
+ The values are in 24-bit range.
+
+ uint32 AccumulatedCallMeterMaximum [readwrite]
+
+ Contains the Accumulated Call Meter maximum value
+ on reaching which, calls are prohibited. This is
+ effectively the maximum number of home units
+ allowed to be consumed by subscriber.
+
+ According to the GSM specification, setting the value
+ to 0, turns off this feature.
+
+ The values are in 24-bit range.
+
+ double PricePerUnit [readwrite]
+
+ Contains price-per-unit conversion value. This
+ information can be used to convert the home units
+ into currency units.
+
+ string Currency [readwrite]
+
+ Contains three-character currency code. This
+ information can be used to convert the home
+ units into currency units.