View Single Post
Posts: 90 | Thanked: 163 times | Joined on Jan 2012
#1
I'm trying to use dbus in qml to change the favorite ambience. I tried using the setFavorite method using the url to the ambience but it returns false. I used dbus monitor and found that the saveAttributes method is called when a favorite is changed in settings:

method call time=1532323566.490406 sender=:1.384 -> d
estination=com.jolla.ambienced serial=27 path=/com/jo
lla/ambienced; interface=com.jolla.ambienced; member=
saveAttributes
int32 1
int64 7
array [
dict entry(
string "favorite"
variant boolean true
)
]

The last argument is an array of dicts, a{sv}, how can I send that using the typedcall method in qml?

Thanks.
 

The Following User Says Thank You to anig For This Useful Post: