<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
you can make own C++ dbus helper for mce. its just nemomobile qml
import not allowed<br>
<br>
<div class="moz-cite-prefix">On 20.03.2014 12:35, frances frederic
wrote:<br>
</div>
<blockquote
cite="mid:1395297352.49061.YahooMailNeo@web133202.mail.ir2.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:10pt">hi all<br>
<br>
I've used dbus package to prevent jolla from sleeping using same
code as /usr/lib/qt5/qml/Sailfish/Media/ScreenBlank.qml but it
seems to be not allwed by jolla validation team when submitting
to harbour.<br>
ERROR [/usr/share/harbour-upnpplayer/qml/pages/FirstPage.qml]
Import 'org.nemomobile.dbus 1.0' is not allowed<br>
<br>
is there a qml alternative to prevent jolla from sleeping?<br>
<br>
regards,<br>
Frédéric<br>
<br>
<div><span><br>
</span></div>
<div style="display: block;" class="yahoo_quoted"> <br>
<br>
<div style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif; font-size:
10pt;">
<div style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif; font-size:
12pt;">
<div dir="ltr"> <font size="2" face="Arial"> Le Vendredi
21 février 2014 0h29, Ove Kåven
<a class="moz-txt-link-rfc2396E" href="mailto:ovek@arcticnet.no"><ovek@arcticnet.no></a> a écrit :<br>
</font> </div>
<div class="y_msg_container">Den 20. feb. 2014 19:16,
skrev Arvid Fahlström Myrman:<br clear="none">
> Well, I've at least solved the first problem by
implementing a timer similar to<br clear="none">
> the one used by ScreenBlank in Sailfish.Media (see<br
clear="none">
> /usr/lib/qt5/qml/Sailfish/Media/ScreenBlank.qml for
reference), and it seems to<br clear="none">
> work properly. I wonder though, how are we
developers supposed to know about<br clear="none">
> these DBus services? Are they documented somewhere?<br
clear="none">
<br clear="none">
Similar questions have already been answered in the past
on this list, <br clear="none">
at least. From the answers I got earlier, I understand
that<br clear="none">
<br clear="none">
- all the MCE D-Bus calls are documented in <br
clear="none">
<a moz-do-not-send="true" shape="rect"
href="https://github.com/nemomobile/mce-dev/blob/master/include/mce/dbus-names.h"
target="_blank">https://github.com/nemomobile/mce-dev/blob/master/include/mce/dbus-names.h</a><br
clear="none">
<br clear="none">
- there's a more friendly API under development at <br
clear="none">
<a moz-do-not-send="true" shape="rect"
href="https://github.com/nemomobile/nemo-keepalive,"
target="_blank">https://github.com/nemomobile/nemo-keepalive,
</a>which seems to have both <br clear="none">
C++ and QML interfaces (which both does exactly what
you're asking for, <br clear="none">
including telling you when the screen goes blank).
Presumably, when it's <br clear="none">
ready and deployed, that is what Jolla will tell
developers about, and <br clear="none">
allow imports of.<br clear="none">
<br clear="none">
In the meantime, you may just have to write some C++
code that you can <br clear="none">
use from your QML (or copy what you need of that
nemo-keepalive into <br clear="none">
your C++ code).
<div class="yqt9512034151" id="yqtfd93414"><br
clear="none">
<br clear="none">
_______________________________________________<br
clear="none">
SailfishOS.org Devel mailing list</div>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
</blockquote>
<br>
</body>
</html>