Merge lp://qastaging/~sergiusens/nuntium/select_that into lp://qastaging/nuntium

Proposed by Sergio Schvezov
Status: Merged
Approved by: Ricardo Salveti
Approved revision: 80
Merged at revision: 76
Proposed branch: lp://qastaging/~sergiusens/nuntium/select_that
Merge into: lp://qastaging/nuntium
Diff against target: 526 lines (+217/-46)
8 files modified
mediator.go (+10/-2)
ofono/context_test.go (+12/-19)
ofono/modem.go (+7/-7)
storage/context.go (+113/-0)
telepathy/const.go (+10/-9)
telepathy/manager.go (+2/-2)
telepathy/message.go (+2/-2)
telepathy/service.go (+61/-5)
To merge this branch: bzr merge lp://qastaging/~sergiusens/nuntium/select_that
Reviewer Review Type Date Requested Status
Ricardo Salveti (community) Approve
PS Jenkins bot continuous-integration Approve
Antti Kaijanmäki (community) Approve
Review via email: mp+236427@code.qastaging.launchpad.net

Commit message

Allow context selection over the org.ofono.mms.Service interface

Description of the change

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
77. By Sergio Schvezov

Adding log on what is being tried for activation

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

My go-fu is bad, but I don't see the service notifying when the PreferredContext property changes.

It's also problematic that the property sometimes is available and sometimes it's not. I can work around this in the bindings, but I need two things:

1) instead of adding/removing the property, have a "not set" value (empty string would do just fine) and have the interface report PropertyChanged signal each time the property is modified
2) or add a straight signal PreferredContextChangede when you add or remove the property.

Current implementation makes it really difficult (or almost impossible) to write bindings on Qt.

review: Needs Fixing
78. By Sergio Schvezov

Minor cleanup, always refreshed from stored context state

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
79. By Sergio Schvezov

Emitting properties changed for preferred context and always having the property set

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

This now produces messages like

phablet@ubuntu-phablet:~$ dbus-monitor interface=org.ofono.mms.Service
signal sender=org.freedesktop.DBus -> dest=:1.192 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.192"
method call sender=:1.193 -> dest=org.ofono.mms serial=2 path=/org/ofono/mms/722341240403394; interface=org.ofono.mms.Service; member=SetProperty
   string "PreferredContext"
   variant object path "/c2"
signal sender=:1.190 -> dest=(null destination) serial=9 path=/org/ofono/mms/722341240403394; interface=org.ofono.mms.Service; member=PropertyChanged
   string "PreferredContext"
   variant object path "/c2

And always has the "property" set.

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

OK. looks good to me.

review: Approve
Revision history for this message
Ricardo Salveti (rsalveti) :
review: Needs Fixing
80. By Sergio Schvezov

Removing stale log line

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ricardo Salveti (rsalveti) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches