<div dir="ltr"><div>Look into the following dbus interfaces of the MCE:<br><br><span style="color:rgb(0,128,0)"><span style="color:rgb(0,128,0)">/com/nokia/mce/signal (</span></span><span style="color:rgb(0,128,0)"><span style="color:rgb(0,128,0)"><span style="color:rgb(0,128,0)">com.nokia.mce.signal)</span> </span>sig_call_state_ind</span> -> for phone calls<br>
</div><br><span style="color:rgb(0,128,0)"><span style="color:rgb(0,128,0)">/com/nokia/voland/signal (com.nokia.voland.signal) </span>visual_reminders_status</span> -> for alarms / calendar events<br><br>Best,<br>tk<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 11:14 AM, <span dir="ltr"><<a href="mailto:sfietkonstantin@free.fr" target="_blank">sfietkonstantin@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Riccardo,<br>
<br>
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).<br>
<br>
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.<br>
<br>
As for incoming calls, I don't know how to handle this. Maybe it is handled automatically with pulseaudio ?<br>
<br>
Regards,<br>
Lucien<br>
<br>
[1] <a href="https://github.com/nemomobile/nemo-keepalive" target="_blank">https://github.com/nemomobile/nemo-keepalive</a><br>
<br>
<br>
----- Mail original -----<br>
De: "Riccardo Ferrazzo" <<a href="mailto:rferrazz@develer.com">rferrazz@develer.com</a>><br>
À: <a href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a><br>
Envoyé: Lundi 4 Août 2014 08:51:53<br>
Objet: [SailfishDevel] Pause application on system events<br>
<div class="HOEnZb"><div class="h5"><br>
Hi,<br>
I'm writing a Metronome application just to get started with Sailfish.<br>
I want the application to not to pause when the screens turns black or when it<br>
is minimized but to pause on incoming calls or alarms ringing.<br>
<br>
At the moment i'm using this:<br>
<br>
onApplicationActiveChanged: {<br>
if(!applicationActive)<br>
metronome._running = false;<br>
}<br>
<br>
But i want to be less restrictive. can someone give me any hint on how to<br>
acheive it?<br>
Thanks.<br>
<br>
--<br>
Riccardo Ferrazzo<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></div></div></blockquote></div><br></div>