×

Discussion Board

Results 1 to 15 of 17

Hybrid View

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    12

    Setting "Flight mode" on Harmattan

    Hi,

    how can I set Flight Mode on Harmattan? There is a function that can do that:

    bool MeeGo::QmDeviceMode::setMode ( DeviceMode mode )

    http://harmattan-dev.nokia.com/docs/...eviceMode.html

    Unfortunately it seems to require mce:eviceModeControl credential, which is not available to third parties according to this page:

    http://wiki.meego.com/User:Javispedr...ecurity_policy

    Is there any way to implement this functionality? It has been requested by many users to my application ProfileMatic. The same thing applies on setting Power Saving Mode, this too has been requested.

    Both are features I very well understand why people would want automatically managed by ProfileMatic. Which makes this situation frustrating.

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Setting "Flight mode" on Harmattan

    Here is sample code, Something u can do like :


    Code:
     devModeChanged (
     	        MeeGo::QmDeviceMode::DeviceMode mode)
    	{
    		    SYS_DEBUG("newmode %d", mode);
    	#ifdef DEBUG
    	    switch (mode)
    	    {
    	        case MeeGo::QmDeviceMode::Flight:
    	            SYS_DEBUG ("mode = Flight mode");
    	            break;
    	        case MeeGo::QmDeviceMode::Normal:
    	            SYS_DEBUG ("mode = Normal");
    	            break;
    	        default:
    	            SYS_DEBUG ("mode = Error!!!");
    	            break;
    	    }

  3. #3
    Registered User
    Join Date
    Jul 2011
    Posts
    12

    Re: Setting "Flight mode" on Harmattan

    Thanks,

    but I do know the system calls. The issue is that setting device mode requires credential mce:eviceModeControl, and if I try to request that credential in Aegis file, I get an error during package install:

    denied 'mce:eviceModeControl' -- origin '' does not allow it

    The result of that is that the system call doesn't work.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Setting "Flight mode" on Harmattan

    Hi,
    I've spoken with MeeGo SW guys and all the methods requiring that token will be removed from the harmattan reference manual soon.

  5. #5
    Registered User
    Join Date
    Jul 2011
    Posts
    12

    Re: Setting "Flight mode" on Harmattan

    Quote Originally Posted by gnuton View Post
    Hi,
    I've spoken with MeeGo SW guys and all the methods requiring that token will be removed from the harmattan reference manual soon.
    Not the best possible course of action, IMO, as those methods could still be useful with Open Mode kernel.

  6. #6
    Nokia Developer Champion
    Join Date
    Nov 2009
    Posts
    200

    Re: Setting "Flight mode" on Harmattan

    Quote Originally Posted by ajalkane View Post
    Not the best possible course of action, IMO, as those methods could still be useful with Open Mode kernel.
    I agree. IMHO it's also better to find out that you are not allowed to do something, than not finding anything and keep searching. This of course requires that restricted tokens are documented within normal documentation.

Similar Threads

  1. Qt Creator and Harmattan "No such file or directory"
    By Sasler in forum [Archived] Qt SDKs and Tools
    Replies: 7
    Last Post: 2011-11-09, 20:47
  2. How to modify the control pane label "OK" and "Cancel" of Text Setting item
    By misfit.physics in forum Symbian User Interface
    Replies: 5
    Last Post: 2007-02-27, 05:39
  3. Keypad input mode "Abc" and "123"
    By fafou in forum Symbian C++
    Replies: 0
    Last Post: 2003-06-23, 09:59
  4. Replies: 2
    Last Post: 2002-05-29, 07:17
  5. Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •