Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 8/8] gps: add documentation
Date: Wed, 22 Dec 2010 16:02:16 -0600	[thread overview]
Message-ID: <4D127568.1090101@gmail.com> (raw)
In-Reply-To: <1292531423-22316-9-git-send-email-rafael.zurita@profusion.mobi>

[-- Attachment #1: Type: text/plain, Size: 2740 bytes --]

Hi Rafael,

On 12/16/2010 02:30 PM, Rafael Ignacio Zurita wrote:
> ---
>  Makefile.am     |    3 ++-
>  doc/gps-api.txt |   41 +++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 43 insertions(+), 1 deletions(-)
>  create mode 100644 doc/gps-api.txt
> 
> diff --git a/Makefile.am b/Makefile.am
> index 4b8cb51..a8ad097 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -359,7 +359,8 @@ doc_files = doc/overview.txt doc/ofono-paper.txt doc/release-faq.txt \
>  			doc/message-api.txt doc/message-waiting-api.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/audio-settings-api.txt doc/text-telephony-api.txt \
> +			doc/gps-api.txt
>  
>  
>  test_scripts = test/backtrace \
> diff --git a/doc/gps-api.txt b/doc/gps-api.txt
> new file mode 100644
> index 0000000..e9238a8
> --- /dev/null
> +++ b/doc/gps-api.txt
> @@ -0,0 +1,41 @@
> +GPS hierarchy
> +=============
> +
> +Service		org.ofono
> +Interface	org.ofono.Gps

As mentioned previously, lets make the Interface
org.ofono.LocationReporting.

> +Object path	[variable prefix]/{modem0,modem1,...}
> +
> +Methods		dict GetProperties()
> +
> +			Returns all Gps properties. See the
> +			properties section for available properties.
> +
> +			Possible Errors: [service].Error.InProgress
> +					 [service].Error.Failed
> +
> +		void SetProperty(string name, variant value)
> +
> +			Changes the value of the specified property. Only
> +			properties that are listed as read-write are
> +			changeable. On success a PropertyChanged signal
> +			will be emitted.
> +
> +			Possible Errors: [service].Error.InvalidArguments
> +					 [service].Error.InProgress
> +					 [service].Error.Failed
> +
> +Signals		PropertyChanged(string property, variant value)
> +
> +			This signal indicates a changed value of the given
> +			property.
> +
> +Properties	boolean	Powered [readwrite]
> +
> +			This property will power or disable the GPS feature in
> +			the modem.
> +
> +			Many modem manufacturers provide a GPS unit with their
> +			modem hardware. This unit can be turned on or off and
> +			frequently takes over one of the tty ports that the
> +			modem provides.
> +

I think we need two additional properties here:

string Device [readonly]
	The device which can be used to obtain the location information

string Type [readonly]
	The type of the device (e.g. nmea)

One thing we can do here is stuff them inside a Settings dictionary
property that is emitted once Powered=True.  This is similar to how
org.ofono.ConnectionContext is implemented.

Regards,
-Denis

      reply	other threads:[~2010-12-22 22:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16 20:30 [PATCH 0/8] Add GPS atom Rafael Ignacio Zurita
2010-12-16 20:30 ` [PATCH 1/8] gps: define new dbus interface Rafael Ignacio Zurita
2010-12-22 21:45   ` Denis Kenzior
2010-12-16 20:30 ` [PATCH 2/8] gps: add new interface to feature map Rafael Ignacio Zurita
2010-12-16 20:30 ` [PATCH 3/8] gps: add public header Rafael Ignacio Zurita
2010-12-22 21:53   ` Denis Kenzior
2010-12-16 20:30 ` [PATCH 4/8] gps: implement interface/atom Rafael Ignacio Zurita
2010-12-16 20:30 ` [PATCH 5/8] mbmmodem: add gps atom Rafael Ignacio Zurita
2010-12-16 20:30 ` [PATCH 6/8] plugins: add gps atom to mbm Rafael Ignacio Zurita
2010-12-22 21:58   ` Denis Kenzior
2010-12-27 10:17     ` Rafael Ignacio Zurita
2010-12-16 20:30 ` [PATCH 7/8] plugins/udev.c: add gps comparison for add_mbm registered modem Rafael Ignacio Zurita
2010-12-16 20:30 ` [PATCH 8/8] gps: add documentation Rafael Ignacio Zurita
2010-12-22 22:02   ` Denis Kenzior [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D127568.1090101@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox