![]() |
Using DBus QML interface
I am trying to use the DBus QML interface
https://nemo-qml-plugin-dbus.readthedocs.io/en/latest/ to monitor the cellular signal levels etc, using these apis: https://github.com/rilmodem/ofono/bl...etwork-api.txt https://git.sailfishos.org/mer-core/...onitor-api.txt I can get signals from ofono.NetworkRegistration OK, but I can't work out how to use "getProperty" and "call" . In the example below in "function xx" they both return "undefined" or how to connect to "servingCellInformationChanged" of the ofono.NetworkMonitorAgent, (which doesn't seem to have any signals.) In this case Code:
import QtQuick 2.0 |
Re: Using DBus QML interface
I realised that TypedCallWithReturn has been replaced by TypedCall.
So now I get error message: Quote:
Code:
Component.onCompleted: { |
Re: Using DBus QML interface
for ofono you can use corresponding qml bindings insead of direct dbus calls
|
Re: Using DBus QML interface
Quote:
Do you have any idea if this is just calling the dbus, or does it directly access the ofono libs some other way? I see NetworkMonitor doesn't appear to be in there, which I am using. I have typedcalls working now, but I have not worked out a way to get callbacks/events/signals from NetworkMonitor, and I am left doing timer polling of getServingNetworkProperties. There is a NetworkMonitorAgent , but does not seem to be in dbus on sfos. There is a call to RegisterAgent in NetworkMonitor, but I cannot see what to do with it. |
All times are GMT. The time now is 21:52. |
vBulletin® Version 3.8.8