From: yeji01.kim Date: Wed, 6 Dec 2017 01:38:33 +0000 (+0900) Subject: Modify signal name X-Git-Tag: submit/tizen/20180109.085832^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b8c40d784c5e57ef55e9b6c42e22ecabc727a68;p=platform%2Fcore%2Fsecurity%2Fdpm-bluetooth.git Modify signal name D-bus does not allow "-" as the signal name. Change-Id: I4bdb24d19a79fd1e38c6da7c07dc8ef279967a78 Signed-off-by: yeji01.kim --- diff --git a/plugin/bluetooth.cpp b/plugin/bluetooth.cpp index a2e6617..ccd87d5 100644 --- a/plugin/bluetooth.cpp +++ b/plugin/bluetooth.cpp @@ -67,7 +67,7 @@ class DesktopConnectivity : public GlobalPolicy { public: DesktopConnectivity() : GlobalPolicy("bluetooth-desktop-connectivity") { - PolicyEventNotifier::create("bluetooth-desktop-connectivity"); + PolicyEventNotifier::create("bluetooth_desktop_connectivity"); } bool apply(const DataType & value) @@ -75,7 +75,7 @@ public: int ret = bluetooth_dpm_set_desktop_connectivity_state(POLICY_IS_ALLOWED(value)); if (!BT_FAILED(ret)) { int enable = value; - PolicyEventNotifier::emit("bluetooth-desktop-connectivity", + PolicyEventNotifier::emit("bluetooth_desktop_connectivity", enable ? "allowed" : "disallowed"); return true; } @@ -87,7 +87,7 @@ class Pairing: public GlobalPolicy { public: Pairing() : GlobalPolicy("bluetooth-pairing") { - PolicyEventNotifier::create("bluetooth-pairing"); + PolicyEventNotifier::create("bluetooth_pairing"); } bool apply(const DataType& value) @@ -95,7 +95,7 @@ public: int ret = bluetooth_dpm_set_pairing_state(POLICY_IS_ALLOWED(value)); if (!BT_FAILED(ret)) { int enable = value; - PolicyEventNotifier::emit("bluetooth-pairing", + PolicyEventNotifier::emit("bluetooth_pairing", enable ? "allowed" : "disallowed"); return true; } @@ -107,13 +107,13 @@ class Tethering: public GlobalPolicy { public: Tethering() : GlobalPolicy("bluetooth-tethering") { - PolicyEventNotifier::create("bluetooth-tethering"); + PolicyEventNotifier::create("bluetooth_tethering"); } bool apply(const DataType& value) { int enable = value; - PolicyEventNotifier::emit("bluetooth-tethering", + PolicyEventNotifier::emit("bluetooth_tethering", enable ? "allowed" : "disallowed"); return true; } @@ -123,7 +123,7 @@ class Bluetooth : public AbstractPolicyProvider { public: Bluetooth(); ~Bluetooth(); - + int setModeChangeState(bool enable); bool getModeChangeState(); int setDesktopConnectivityState(bool enable);