Sunday, 2020-04-05

*** Oksana_ is now known as Oksana00:37
*** zbenjamin is now known as Guest565801:43
*** zbenjamin_ is now known as zbenjamin01:43
*** frinring_ is now known as frinring02:11
rubdosHow does the SailfishSDK install rpm's without devel-su? Or does it actually remember the password or something?15:33
rubdosnevermind, found sdk-deploy-rpm15:47
Nico|MentorforNhIs there a qt wrapper for iphb, i.e. the background service heartbeat API?18:49
Nico|MentorforNhI've only found this so far:
Nico|MentorforNhFound it -> nemo keepalive19:07
malwhat are you trying to do?19:14
Nico|MentorforNhWake up my application for a periodic sync from the backround. Sounds like keepalive would do that, via the hearbeat or backgroundactivity19:15
Nico|MentorforNhI think heartbeat would be the correct one to use and to just stop that, when running in the foreground19:19
mal ?19:28
Nico|MentorforNhYeah, I'm going for this though, since I need to use it from C++:
Nico|MentorforNhThanks :319:29
malisn't the backgroundactivity more correct for periodic sync? depends on how often you want to sync19:30
Nico|MentorforNhI'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 :D19:33
malNico|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 intervals19:35
Nico|MentorforNhYeah, but doesn't heatbeat do that too with a much simpler API?19:36
Nico|MentorforNhI think for the background activity I need to call wait explicitly, while for the heartbeat I can just connect to the timeout19:36
Nico|MentorforNhHm, maybe you're right19:38
Nico|MentorforNhI'll try to use the background activity stuff :D19:38
maldid you check the examples19:42
malin the source repo
Nico|MentorforNhYeah, but they were a bit confusing at first, since it is not quite clear, that wait() restarts the timer19:43
Nico|MentorforNhSeems like the benefit of the background stuff is, that the CPU doesn't go to sleep for a guaranteed amount of time19:45
malyes, the qml api also has that feature to keep the system awake while the periodic code is being run19:49
Nico|MentorforNhYeah, the cpp APi seems to do that too19:50
Nico|MentorforNhIs the c++ Api allowed in harbour?19:50
malseems to be19:51
Nico|MentorforNhYay, thanks :D19:51
Nico|MentorforNhThe 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 :320:44
Nico|MentorforNhThank you for your help!20:47
*** svartoyg is now known as svartoyg_afk23:15

Generated by 2.17.1 by Marius Gedminas - find it at!