2021-09-15 08:03:28 -07:00
|
|
|
#include <QtCore>
|
|
|
|
|
#include <QString>
|
2023-11-29 22:50:36 +02:00
|
|
|
#include <QJsonObject>
|
2024-03-27 11:02:34 +00:00
|
|
|
#include <QHostAddress>
|
2023-11-29 22:50:36 +02:00
|
|
|
#include "../client/daemon/interfaceconfig.h"
|
2021-09-15 08:03:28 -07:00
|
|
|
|
|
|
|
|
class IpcInterface
|
|
|
|
|
{
|
|
|
|
|
SLOT( int createPrivilegedProcess() ); // return local pid
|
|
|
|
|
|
|
|
|
|
// Route functions
|
|
|
|
|
SLOT( int routeAddList(const QString &gw, const QStringList &ips) );
|
|
|
|
|
SLOT( bool clearSavedRoutes() );
|
|
|
|
|
SLOT( bool routeDeleteList(const QString &gw, const QStringList &ip) );
|
2025-11-30 18:49:16 -08:00
|
|
|
SLOT( bool flushDns() );
|
2021-12-15 14:53:07 +03:00
|
|
|
SLOT( void resetIpStack() );
|
2021-09-15 08:03:28 -07:00
|
|
|
|
|
|
|
|
SLOT( bool checkAndInstallDriver() );
|
|
|
|
|
SLOT( QStringList getTapList() );
|
2022-01-30 17:35:57 +03:00
|
|
|
|
|
|
|
|
SLOT( void cleanUp() );
|
|
|
|
|
SLOT( void setLogsEnabled(bool enabled) );
|
2024-08-08 19:13:49 +04:00
|
|
|
SLOT( void clearLogs() );
|
2023-02-28 17:16:38 +03:00
|
|
|
|
2024-03-27 11:02:34 +00:00
|
|
|
SLOT( bool createTun(const QString &dev, const QString &subnet) );
|
|
|
|
|
SLOT( bool deleteTun(const QString &dev) );
|
|
|
|
|
|
2025-11-30 18:49:16 -08:00
|
|
|
SLOT( bool StartRoutingIpv6() );
|
|
|
|
|
SLOT( bool StopRoutingIpv6() );
|
2024-03-27 11:02:34 +00:00
|
|
|
|
2023-11-29 22:50:36 +02:00
|
|
|
SLOT( bool disableKillSwitch() );
|
2025-05-02 23:54:36 -07:00
|
|
|
SLOT( bool disableAllTraffic() );
|
|
|
|
|
SLOT( bool refreshKillSwitch( bool enabled ) );
|
|
|
|
|
SLOT( bool addKillSwitchAllowedRange( const QStringList ranges ) );
|
|
|
|
|
SLOT( bool resetKillSwitchAllowedRange( const QStringList ranges ) );
|
2023-12-16 09:19:04 -05:00
|
|
|
SLOT( bool enablePeerTraffic( const QJsonObject &configStr) );
|
|
|
|
|
SLOT( bool enableKillSwitch( const QJsonObject &excludeAddr, int vpnAdapterIndex) );
|
2024-03-27 11:02:34 +00:00
|
|
|
SLOT( bool updateResolvers(const QString& ifname, const QList<QHostAddress>& resolvers) );
|
2025-10-02 14:58:53 +02:00
|
|
|
SLOT( bool restoreResolvers() );
|
2021-09-15 08:03:28 -07:00
|
|
|
|
2026-02-11 16:47:28 +01:00
|
|
|
SLOT(bool xrayStart(const QString &config));
|
|
|
|
|
SLOT(bool xrayStop());
|
2025-12-15 14:54:34 +01:00
|
|
|
|
2025-12-02 11:46:24 +07:00
|
|
|
SLOT( bool startNetworkCheck(const QString& serverIpv4Gateway, const QString& deviceIpv4Address) );
|
|
|
|
|
SLOT( bool stopNetworkCheck() );
|
|
|
|
|
|
|
|
|
|
SIGNAL( connectionLose() );
|
2026-02-19 13:21:49 +01:00
|
|
|
SIGNAL( wakeup() );
|
|
|
|
|
SIGNAL( networkChanged() );
|
2025-12-02 11:46:24 +07:00
|
|
|
};
|