[maemo-developers] how to manage phone Profiles in Maemo

From: daniel wilms daniel.wilms at nokia.com
Date: Wed Nov 11 13:32:14 EET 2009
ext Aniello Del Sorbo wrote:
> 2009/11/11 daniel wilms <daniel.wilms at nokia.com>:
>   
>> 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
>>     
>
> What's the difference between "flight" and "offline" ?
>
>   
It's the same basically. Sorry for the confusion. I just cited the API 
;) and thx to Faheem, as you were faster. Haven't had seen your mail 
when I replied ;)

Daniel
More information about the maemo-developers mailing list