[SailfishDevel] Pause application on system events

Tone Kastlunger users.giulietta at gmail.com
Fri Aug 8 08:38:24 UTC 2014


Look into the following dbus interfaces of the MCE:

/com/nokia/mce/signal (com.nokia.mce.signal) sig_call_state_ind -> for
phone calls

/com/nokia/voland/signal (com.nokia.voland.signal) visual_reminders_status
-> for alarms / calendar events

Best,
tk



On Fri, Aug 8, 2014 at 11:14 AM, <sfietkonstantin at free.fr> wrote:

> Hi Riccardo,
>
> At the moment, you can use nemo-keepalive [1] to make your phone not to
> enter in deep sleep, as well as controlling the screen state etc (you can
> even make the phone's screen stay permanently on).
>
> nemo-keepalive is not allowed in harbour, so you need to dynamically
> (rpath) or statically link it. Depending on the license of your app, you
> might chose the former or latter option.
>
> As for incoming calls, I don't know how to handle this. Maybe it is
> handled automatically with pulseaudio ?
>
> Regards,
> Lucien
>
> [1] https://github.com/nemomobile/nemo-keepalive
>
>
> ----- Mail original -----
> De: "Riccardo Ferrazzo" <rferrazz at develer.com>
> À: devel at lists.sailfishos.org
> Envoyé: Lundi 4 Août 2014 08:51:53
> Objet: [SailfishDevel]  Pause application on system events
>
> Hi,
> I'm writing a Metronome application just to get started with Sailfish.
> I want the application to not to pause when the screens turns black or
> when it
> is minimized but to pause on incoming calls or alarms ringing.
>
> At the moment i'm using this:
>
>     onApplicationActiveChanged: {
>         if(!applicationActive)
>             metronome._running = false;
>     }
>
> But i want to be less restrictive. can someone give me any hint on how to
> acheive it?
> Thanks.
>
> --
> Riccardo Ferrazzo
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140808/43e19068/attachment-0001.html>


More information about the Devel mailing list