On 29 Apr 2014, at 5:09 am, Peter Pykäläinen <peter.pykalai...@gmail.com> wrote:
> Hi, > > any idea on how to use QML DeviceInfo on Sailfish? > I have been searching for a solution to get the event when device screen is > locked (onLockStatusChanged), but apparently the imports are not working / > not allowed. DeviceInfo no longer has that functionality in Qt 5. Try something like this: https://github.com/nemomobile/connectionagent/blob/master/connd/wakeupwatcher.cpp https://github.com/nemomobile/connectionagent/blob/master/connd/wakeupwatcher.h _______________________________________________ SailfishOS.org Devel mailing list