View Single Post
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#191
Originally Posted by Bratag View Post
I would be happy to write up some quickwidget qml for it. Does the app respond to dbus signals?
The status bar icon listen for profiles changes.
But if you want to control the profiles settings from your
app or widget, you can use dbus-commands to
control profiled (the systems profile daemon):

get the list of available profiles:
dbus-send --session --dest=com.nokia.profiled --type=method_call --print-reply /com/nokia/profiled com.nokia.profiled.get_profiles

get the current active profile:
dbus-send --session --dest=com.nokia.profiled --type=method_call --print-reply /com/nokia/profiled com.nokia.profiled.get_profile

activate the "general" profile:
dbus-send --session --dest=com.nokia.profiled --type=method_call --print-reply /com/nokia/profiled com.nokia.profiled.set_profile string:"general"
 

The Following 2 Users Say Thank You to nicolai For This Useful Post: