Modify signal name 70/162870/2 accepted/tizen_4.0_unified accepted/tizen/4.0/unified/20180111.051208 submit/tizen/20180109.085832 submit/tizen/20180110.012731 submit/tizen_4.0/20180109.085933 tizen_4.0.IoT.p2_release
authoryeji01.kim <yeji01.kim@samsung.com>
Wed, 6 Dec 2017 01:38:33 +0000 (10:38 +0900)
committeryeji01.kim <yeji01.kim@samsung.com>
Wed, 6 Dec 2017 01:46:06 +0000 (10:46 +0900)
D-bus does not allow "-" as the signal name.

Change-Id: I4bdb24d19a79fd1e38c6da7c07dc8ef279967a78
Signed-off-by: yeji01.kim <yeji01.kim@samsung.com>
plugin/bluetooth.cpp

index a2e6617..ccd87d5 100644 (file)
@@ -67,7 +67,7 @@ class DesktopConnectivity : public GlobalPolicy<DataSetInt> {
 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<DataSetInt> {
 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<DataSetInt> {
 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);