From 5d3070ff4a72ef31c364fec618e5277287191842 Mon Sep 17 00:00:00 2001 From: liuxinhao Date: Tue, 30 May 2023 11:09:17 +0800 Subject: [PATCH 2/3] refactor(kiran auth): Update the DBus invocation method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新Kiran认证服务 DBus调用方法 --- .../com.kylinsec.Kiran.Authentication.xml | 66 +++++++++---------- .../src/utils/kiran-auth-dbus-proxy.cpp | 2 +- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/plugins/authentication/data/com.kylinsec.Kiran.Authentication.xml b/plugins/authentication/data/com.kylinsec.Kiran.Authentication.xml index 026c4fa..12b077f 100644 --- a/plugins/authentication/data/com.kylinsec.Kiran.Authentication.xml +++ b/plugins/authentication/data/com.kylinsec.Kiran.Authentication.xml @@ -51,7 +51,7 @@ - + driver name @@ -74,7 +74,7 @@ The auth type. Refer to KADAuthType in kas-authentication-i.h - The device ID. + The default device ID. @@ -83,37 +83,7 @@ The auth type. Refer to KADAuthType in kas-authentication-i.h - The device ID. - - - - - - The auth type. Refer to KADAuthType in kas-authentication-i.h - - - Whether the authentication type is enabled - - - - - - The auth type. Refer to KADAuthType in kas-authentication-i.h - - - Whether the authentication type is enabled - - - - - - The auth type. Refer to KADAuthType in kas-authentication-i.h - - - Authentication application, Refer to KADAuthApplication in kas-authentication-i.h - - - Whether to enable the authentication type in this application + The default device ID. @@ -148,6 +118,36 @@ + + + The auth type. Refer to KADAuthType in kas-authentication-i.h + + + Whether the authentication type is enabled + + + + + + The auth type. Refer to KADAuthType in kas-authentication-i.h + + + Whether the authentication type is enabled + + + + + + The auth type. Refer to KADAuthType in kas-authentication-i.h + + + Authentication application, Refer to KADAuthApplication in kas-authentication-i.h + + + Whether to enable the authentication type in this application + + + The authentication mode contains AND and OR. Refer to enum AuthMode in file kas-authentication-i.h. diff --git a/plugins/authentication/src/utils/kiran-auth-dbus-proxy.cpp b/plugins/authentication/src/utils/kiran-auth-dbus-proxy.cpp index 0bd77b5..09a60d8 100644 --- a/plugins/authentication/src/utils/kiran-auth-dbus-proxy.cpp +++ b/plugins/authentication/src/utils/kiran-auth-dbus-proxy.cpp @@ -151,7 +151,7 @@ KiranAuthDBusProxy::getDriversByType(KADAuthType type) void KiranAuthDBusProxy::setDriverEnalbe(const QString& driverName,bool enable) { - auto reply = m_authProxy->SetDrivereEanbled(driverName,enable); + auto reply = m_authProxy->SetDrivereEnabled(driverName,enable); reply.waitForFinished(); } -- 2.33.0