All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SetProperty method and Powered property missing from modem-api doc.
@ 2009-10-19 13:06 Marko Saukko
  2009-10-19 17:54 ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Marko Saukko @ 2009-10-19 13:06 UTC (permalink / raw)
  To: ofono

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

Hi,

SetProperty method and Powered Property where missing from modem-api.txt

Question:

I'm not sure if the "On success a PropertyChanged signal will be emitted."
message is valid, as the PropertyChanged signal is sent only once when doing
for example the following:

$ dbus-send --print-reply --system --dest=org.ofono /atgen0
org.ofono.Modem.SetProperty string:Powered variant:boolean:true
method return sender=:1.160 -> dest=:1.227 reply_serial=2
$ dbus-send --print-reply --system --dest=org.ofono /atgen0
org.ofono.Modem.SetProperty string:Powered variant:boolean:true
method return sender=:1.160 -> dest=:1.228 reply_serial=2

If I understood correctly the second method call is also successfull
eventhough no PropertyChanged signal is emitted.

Regards,
Marko

---
 doc/modem-api.txt |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/doc/modem-api.txt b/doc/modem-api.txt
index 3058880..06a4ada 100644
--- a/doc/modem-api.txt
+++ b/doc/modem-api.txt
@@ -12,12 +12,27 @@ Methods             dict GetProperties()

                        Possible Errors: [service].Error.InvalidArguments

+               void SetProperty(string property, 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.DoesNotExist
+
 Signals                PropertyChanged(string name, variant value)

                        This signal indicates a changed value of the given
                        property.

-Properties     string Manufacturer [readonly, optional]
+Properties     boolean Powered [readwrite]
+
+                       Boolean representing the power state of the modem
+                       device.
+
+               string Manufacturer [readonly, optional]

                        String representing the manufacturer of the modem
                        device.
--
1.6.0.4

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2515 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-22  0:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-19 13:06 [PATCH] SetProperty method and Powered property missing from modem-api doc Marko Saukko
2009-10-19 17:54 ` Denis Kenzior
2009-10-20  6:32   ` Marko Saukko
2009-10-22  0:08     ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.