Re: [SailfishDevel] Qt5SystemInfo status

2016-01-22 Thread Riku Lahtinen
Hi! Thanks for the hints. I ended to dbus solution for two reasons: 1. It is currently supported by Jolla Harbour 2. In my code the CellId update didn't work reliable in QtSystemInfo solution. The app did not always update the cell info when the cell was changed. E.g. if you changed the phone

Re: [SailfishDevel] Qt5SystemInfo status

2016-01-14 Thread Oleksii Serdiuk
Right, but why reinventing the wheel when there's already the code that does it? :-) My plan is to get rid of my workaround as soon as Qt SystemInfo gets whitelisted, so I didn't want to bother writing the code that I will throw away in future. On 12/01/16 13:01, Кожевников Андрей Андреевич

Re: [SailfishDevel] Qt5SystemInfo status

2016-01-13 Thread Кожевников Андрей Андреевич
https://sailfishos.org/develop/docs/nemo-qml-plugin-dbus/ https://github.com/nemomobile/qtmpris 13.01.2016 12:09, jollail...@gmail.com пишет: Riku kirjoitti ke tammikuuta 13 03:44:04 2016 GMT+0200: Are there good examples of dbus handling from qml apps? Sorry to hijack your topic, but I'd

Re: [SailfishDevel] Qt5SystemInfo status

2016-01-12 Thread jollailija
Riku kirjoitti ke tammikuuta 13 03:44:04 2016 GMT+0200: > > Are there good examples of dbus handling from qml apps? > Sorry to hijack your topic, but I'd also like to see some examples of dbus usage, especially MPRIS in qml (I'm implementing lockscreen media button support) -- Lähetetty Jol

Re: [SailfishDevel] Qt5SystemInfo status

2016-01-12 Thread Riku
Hi! Thank you for the hints. I will read taot code to get deeper understanding. Are there good examples of dbus handling from qml apps? Riku Кожевников Андрей Андреевич kirjoitti ti tammikuuta 12 14:01:34 2016 GMT+0200: > you can read /etc/sailfish-version and etc. > > 12.01.2016 18:00, Oleks

Re: [SailfishDevel] Qt5SystemInfo status

2016-01-12 Thread Кожевников Андрей Андреевич
you can read /etc/sailfish-version and etc. 12.01.2016 18:00, Oleksii Serdiuk пишет: Well, just for getting cell info - yes, should be enough to query ofono(?) through dbus. For my case, Inned more info, like device model, OS version, etc. So custom-built libQt5SystemInfo.so.5 is a drop-in re

Re: [SailfishDevel] Qt5SystemInfo status

2016-01-12 Thread Oleksii Serdiuk
Well, just for getting cell info - yes, should be enough to query ofono(?) through dbus. For my case, Inned more info, like device model, OS version, etc. So custom-built libQt5SystemInfo.so.5 is a drop-in replacement until Qt SystemInfo gets whitelisted: I'll only have to remove it from the R

Re: [SailfishDevel] Qt5SystemInfo status

2016-01-12 Thread Кожевников Андрей Андреевич
In most cases you can fetch information using dbus calls without using systeminfo lib. 12.01.2016 17:51, Oleksii Serdiuk пишет: I've had a similar issue: I needed Qt SystemInfo to integrate analytics into my app. The recommended way to solve linking against non-whitelisted libraries, is to s

Re: [SailfishDevel] Qt5SystemInfo status

2016-01-12 Thread Oleksii Serdiuk
I've had a similar issue: I needed Qt SystemInfo to integrate analytics into my app. The recommended way to solve linking against non-whitelisted libraries, is to ship them together with your app. However, just taking libQt5SystemInfo.so.5 from Sailfish repos and putting it into your RPM won'

[SailfishDevel] Qt5SystemInfo status

2016-01-10 Thread Riku Lahtinen
Hi! I developed an app At Work, which records the time you stay at work by using GPS. Because of the poor GPS functionality in buildings and response of the app users I added a feature to utilize a cell information also. For that I needed to import QtSystemInfo 5.0. I got that to work by inse