<p dir="ltr">Thank you so much.<br>
I will give this a try.</p>
<p dir="ltr">// Peter Pykäläinen</p>
<div class="gmail_quote">29.4.2014 6.43 kirjoitti "Lorn Potter" <<a href="mailto:lorn.potter@jolla.com">lorn.potter@jolla.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 29 Apr 2014, at 5:09 am, Peter Pykäläinen <<a href="mailto:peter.pykalainen@gmail.com">peter.pykalainen@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> any idea on how to use QML DeviceInfo on Sailfish?<br>
> I have been searching for a solution to get the event when device screen is<br>
> locked (onLockStatusChanged), but apparently the imports are not working /<br>
> not allowed.<br>
<br>
DeviceInfo no longer has that functionality in Qt 5.<br>
<br>
Try something like this:<br>
<a href="https://github.com/nemomobile/connectionagent/blob/master/connd/wakeupwatcher.cpp" target="_blank">https://github.com/nemomobile/connectionagent/blob/master/connd/wakeupwatcher.cpp</a><br>
<a href="https://github.com/nemomobile/connectionagent/blob/master/connd/wakeupwatcher.h" target="_blank">https://github.com/nemomobile/connectionagent/blob/master/connd/wakeupwatcher.h</a><br>
<br>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
</blockquote></div>