[maemo-developers] how to manage phone Profiles in Maemo
From: daniel wilms daniel.wilms at nokia.comDate: Wed Nov 11 13:13:45 EET 2009
- Previous message: how to manage phone Profiles in Maemo
- Next message: how to manage phone Profiles in Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi > thank you for the fast response; > > #define MCE_DEVICE_MODE_CHANGE_REQ "req_device_mode_change" > > WoW!, that looks promising. But how can I use this inside my application > to force changing of the Profile/mode of the phone ?? > > this describes a dbus-service. How to implement it, depends on the language you are using. Here an example using the dbus-send in the terminal: bus-send --system --type=method_call --dest="com.nokia.mce" --print-reply /com/nokia/mce/request com.nokia.mce.request.get_device_mode The reply is the device mode as a string. But with mce you can just switch between "normal", "flight" and "offline" mode. I will try to figure out if and how you can select the other profiles. Cheers Daniel
- Previous message: how to manage phone Profiles in Maemo
- Next message: how to manage phone Profiles in Maemo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]