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, <sfietkonstan...@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" <rferr...@develer.com> > À: devel@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-unsubscr...@lists.sailfishos.org > _______________________________________________ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to > devel-unsubscr...@lists.sailfishos.org >
_______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org