*** Oksana_ is now known as Oksana | 00:37 | |
*** zbenjamin is now known as Guest5658 | 01:43 | |
*** zbenjamin_ is now known as zbenjamin | 01:43 | |
*** frinring_ is now known as frinring | 02:11 | |
rubdos | How does the SailfishSDK install rpm's without devel-su? Or does it actually remember the password or something? | 15:33 |
---|---|---|
rubdos | nevermind, found sdk-deploy-rpm | 15:47 |
Nico|MentorforNh | Is there a qt wrapper for iphb, i.e. the background service heartbeat API? | 18:49 |
Nico|MentorforNh | I've only found this so far: https://github.com/tanghus/kitchen-timer-qml/tree/master/src/insomniac | 18:49 |
Nico|MentorforNh | Found it -> nemo keepalive | 19:07 |
mal | what are you trying to do? | 19:14 |
Nico|MentorforNh | Wake up my application for a periodic sync from the backround. Sounds like keepalive would do that, via the hearbeat or backgroundactivity | 19:15 |
Nico|MentorforNh | I think heartbeat would be the correct one to use and to just stop that, when running in the foreground | 19:19 |
mal | https://sailfishos.org/develop/docs/nemo-qml-plugins-keepalive/qml-nemo-keepalive-backgroundjob.html/ ? | 19:28 |
Nico|MentorforNh | Yeah, I'm going for this though, since I need to use it from C++: https://git.sailfishos.org/mer-core/nemo-keepalive/blob/master/lib/heartbeat.h | 19:28 |
Nico|MentorforNh | Thanks :3 | 19:29 |
mal | isn't the backgroundactivity more correct for periodic sync? depends on how often you want to sync | 19:30 |
Nico|MentorforNh | I'm not quite sure, I don't know how they are intended to be used, but I think it is easier to connect to the timeout of the heartbeat. Then I can just stop it, when running in the foreground. I always want to sync in the background probably every 30 seconds or 2,5 minutes, since otherwise you wouldn't be able to receive messages :D | 19:33 |
mal | Nico|MentorforNh: but that backgroundactivity uses heartbeat internally so it's can be seen as a convinience API for the special case of waking up at certain intervals | 19:35 |
Nico|MentorforNh | Yeah, but doesn't heatbeat do that too with a much simpler API? | 19:36 |
Nico|MentorforNh | I think for the background activity I need to call wait explicitly, while for the heartbeat I can just connect to the timeout | 19:36 |
Nico|MentorforNh | Hm, maybe you're right | 19:38 |
Nico|MentorforNh | I'll try to use the background activity stuff :D | 19:38 |
mal | did you check the examples | 19:42 |
mal | in the source repo https://git.sailfishos.org/mer-core/nemo-keepalive/tree/master/examples | 19:42 |
Nico|MentorforNh | Yeah, but they were a bit confusing at first, since it is not quite clear, that wait() restarts the timer | 19:43 |
Nico|MentorforNh | Seems like the benefit of the background stuff is, that the CPU doesn't go to sleep for a guaranteed amount of time | 19:45 |
mal | yes, the qml api also has that feature to keep the system awake while the periodic code is being run | 19:49 |
Nico|MentorforNh | Yeah, the cpp APi seems to do that too | 19:50 |
Nico|MentorforNh | Is the c++ Api allowed in harbour? | 19:50 |
mal | https://github.com/sailfishos/sdk-harbour-rpmvalidator/blob/master/allowed_libraries.conf#L37 | 19:51 |
mal | seems to be | 19:51 |
Nico|MentorforNh | Yay, thanks :D | 19:51 |
Nico|MentorforNh | The Background activity stuff seems to work really well. And once I figured out, how one should use it, the relevant code was basically just 3 lines. Pretty neat :3 | 20:44 |
mal | good | 20:46 |
Nico|MentorforNh | Thank you for your help! | 20:47 |
*** svartoyg is now known as svartoyg_afk | 23:15 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!