diff --git a/libnm-kylin/libnm-base-kylin/kylinnetworkmanager.h b/libnm-kylin/libnm-base-kylin/kylinnetworkmanager.h index 86503576..1542e49e 100644 --- a/libnm-kylin/libnm-base-kylin/kylinnetworkmanager.h +++ b/libnm-kylin/libnm-base-kylin/kylinnetworkmanager.h @@ -178,6 +178,7 @@ public Q_SLOTS: void onUpdateWirelessEnterPriseTlsConnect(const QString &uuid, const KyEapMethodTlsInfo &tlsinfo); void onUpdateWirelessEnterPrisePeapConnect(const QString &uuid, const KyEapMethodPeapInfo &peapInfo); void onUpdateWirelessEnterPriseTtlsConnect(const QString &uuid, const KyEapMethodTtlsInfo &ttlsInfo); + void onUpdateWirelessAutoConnectState(const QString &uuid, bool bAutoConnect); }; #endif // KYLINNETWORKMANAGER_H diff --git a/libnm-kylin/libnm-base-kylin/kylinnetworkmanger.cpp b/libnm-kylin/libnm-base-kylin/kylinnetworkmanger.cpp index dc367677..f9724ae0 100644 --- a/libnm-kylin/libnm-base-kylin/kylinnetworkmanger.cpp +++ b/libnm-kylin/libnm-base-kylin/kylinnetworkmanger.cpp @@ -363,3 +363,9 @@ void KyNetworkManager::onUpdateWirelessEnterPriseTtlsConnect(const QString &uuid KyWirelessConnectOperation operate; operate.updateWirelessEnterPriseTtlsConnect(uuid, ttlsInfo); } + +void KyNetworkManager::onUpdateWirelessAutoConnectState(const QString &uuid, bool bAutoConnect) +{ + KyWirelessConnectOperation operate; + operate.setWirelessAutoConnect(uuid, bAutoConnect); +}