Add DBus network checker for Linux

This commit is contained in:
Mykola Baibuz 2025-04-02 11:33:15 +03:00
parent e730521576
commit 319043818a
12 changed files with 65 additions and 11 deletions

View file

@ -5,9 +5,7 @@
#include "ipc.h"
#include "localserver.h"
#include "utilities.h"
#include "router.h"
#include "logger.h"
#ifdef Q_OS_WIN
@ -47,6 +45,10 @@ LocalServer::LocalServer(QObject *parent) : QObject(parent),
return;
}
m_networkWatcher.initialize();
connect(&m_networkWatcher, &NetworkWatcher::sleepMode, &m_ipcServer, &IpcServer::networkChange);
#ifdef Q_OS_LINUX
// Signal handling for a proper shutdown.
QObject::connect(qApp, &QCoreApplication::aboutToQuit,