mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
feat: add server UUID management and local proxy settings
- Implemented UUID migration for servers to ensure each server has a unique identifier. - Added methods for managing local proxy settings, including owner UUID, port, and HTTP enablement. - Updated server model to include server UUID role for better data handling.
This commit is contained in:
@@ -239,11 +239,20 @@ public:
|
||||
QStringList readNewsIds() const;
|
||||
void setReadNewsIds(const QStringList &ids);
|
||||
|
||||
// Local proxy settings
|
||||
QString localProxyOwnerUuid() const;
|
||||
void setLocalProxyOwnerUuid(const QString &uuid);
|
||||
quint16 localProxyPort() const;
|
||||
void setLocalProxyPort(quint16 port);
|
||||
bool isLocalProxyHttpEnabled() const;
|
||||
void setLocalProxyHttpEnabled(bool enabled);
|
||||
|
||||
signals:
|
||||
void saveLogsChanged(bool enabled);
|
||||
void screenshotsEnabledChanged(bool enabled);
|
||||
void serverRemoved(int serverIndex);
|
||||
void settingsCleared();
|
||||
void localProxySettingsChanged();
|
||||
|
||||
private:
|
||||
QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const;
|
||||
@@ -251,6 +260,8 @@ private:
|
||||
|
||||
void setInstallationUuid(const QString &uuid);
|
||||
|
||||
void migrateServerUuids();
|
||||
|
||||
mutable SecureQSettings m_settings;
|
||||
|
||||
QString m_gatewayEndpoint;
|
||||
|
||||
Reference in New Issue
Block a user