location-reporting: add documentation
authorRafael Ignacio Zurita <rafael.zurita@profusion.mobi>
Tue, 22 Feb 2011 18:35:15 +0000 (15:35 -0300)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 23 Feb 2011 23:19:38 +0000 (17:19 -0600)
Makefile.am
doc/location-reporting-api.txt [new file with mode: 0644]

index b0056f0..5bf4fbc 100644 (file)
@@ -423,7 +423,8 @@ doc_files = doc/overview.txt doc/ofono-paper.txt doc/release-faq.txt \
                        doc/phonebook-api.txt doc/radio-settings-api.txt \
                        doc/sim-api.txt doc/stk-api.txt \
                        doc/audio-settings-api.txt doc/text-telephony-api.txt \
-                       doc/calypso-modem.txt doc/message-api.txt
+                       doc/calypso-modem.txt doc/message-api.txt \
+                       doc/location-reporting-api.txt
 
 
 test_scripts = test/backtrace \
diff --git a/doc/location-reporting-api.txt b/doc/location-reporting-api.txt
new file mode 100644 (file)
index 0000000..b8ce840
--- /dev/null
@@ -0,0 +1,39 @@
+Location Reporting Hierarchy [experimental]
+=================
+
+Service                org.ofono
+Interface      org.ofono.LocationReporting
+Object path    [variable prefix]/{modem0,modem1,...}
+
+Methods                dict GetProperties()
+
+                       Returns all LocationReporting properties. See the
+                       properties section for available properties.
+
+               byte Request()
+
+                       Asks to turn ON the NMEA stream and supplies the
+                       gps device file descriptor. The external cliend should
+                       use the file descriptor to receive the NMEA data.
+
+                       Possible Errors: [service].Error.InProgress
+                                        [service].Error.InUse
+                                        [service].Error.Failed
+
+               void Release()
+
+                       Releases the gps device file descriptor and turns
+                       OFF the NMEA stream.
+
+                       Possible Errors: [service].Error.InProgress
+                                        [service].Error.NotAvailable
+                                        [service].Error.Failed
+
+Properties     boolean Enabled [readonly]
+
+                        Boolean representing the state of the NMEA stream.
+
+               string Type [readonly]
+
+                       Holds the type of the device. Currently only NMEA is
+                       supported.