I wrote an applet that makes an API call every 10 minutes, but I want it to show a message if the computer is offline. This means I need to get the network status within QML. I thought a DataEngine might be available, but there isn't.
I read the code for plasma-nm and found this solution hack:
I need to setup notifications here. I am not familiar with how qml works, but can't ituse qt native integration, like the one documented in the kde page