-
Notifications
You must be signed in to change notification settings - Fork 212
Service internet.checker.service
syl edited this page Oct 23, 2020
·
4 revisions
This service checks if your internet connection is still valid. If not it notifies the frontend and shows an error popup where you can try to reconnect.
bool internet_reacheable;
This member tells if the internet status is valid.
Rectangle {
id: app
visible: !API.app.internet_checker.internet_reacheable
}
Q_INVOKABLE void retry() noexcept;
This function can be called from the frontend. It attemps to check if the connexion status is valid or not. If it succeeds, it sets is_internet_alive
Q_PROPERTY to true. Otherwise it sets the property to false.
DefaultButton {
text: qsTr("Retry")
onClicked: API.app.internet_checker.retry()
Layout.alignment: Qt.AlignHCenter
}