iOS connection fixes (#278)

iOS VPN connection fixes
This commit is contained in:
pokamest 2023-08-08 19:02:41 -07:00 committed by GitHub
parent a1a6185fd6
commit 5510ff7dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 50 deletions

View file

@ -5,6 +5,7 @@
#include <QString>
#include <QScopedPointer>
#include <QRemoteObjectNode>
#include <QTimer>
#include "protocols/vpnprotocol.h"
#include "core/defs.h"
@ -85,10 +86,6 @@ protected slots:
void onBytesChanged(quint64 receivedBytes, quint64 sentBytes);
void onConnectionStateChanged(VpnProtocol::VpnConnectionState state);
#ifdef Q_OS_IOS
void checkIOSStatus();
#endif
protected:
QSharedPointer<VpnProtocol> m_vpnProtocol;
@ -99,14 +96,14 @@ private:
QJsonObject m_vpnConfiguration;
QJsonObject m_routeMode;
QString m_remoteAddress;
bool m_isIOSConnected; //remove later move to isConnected,
// Only for iOS for now, check counters
QTimer m_checkTimer;
#ifdef AMNEZIA_DESKTOP
IpcClient *m_IpcClient {nullptr};
#endif
#ifdef Q_OS_IOS
IOSVpnProtocol * iosVpnProtocol{nullptr};
#endif
#ifdef Q_OS_ANDROID
AndroidVpnProtocol* androidVpnProtocol = nullptr;