Modify signal name 87/162887/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20180111.051202 accepted/tizen/5.0/unified/20181102.020527 accepted/tizen/unified/20180306.061258 submit/tizen/20180109.085832 submit/tizen/20180110.012731 submit/tizen/20180305.082921 submit/tizen_4.0/20180109.085933 submit/tizen_5.0/20181101.000004 tizen_4.0.IoT.p2_release
authoryeji01.kim <yeji01.kim@samsung.com>
Wed, 6 Dec 2017 03:05:00 +0000 (12:05 +0900)
committeryeji01.kim <yeji01.kim@samsung.com>
Wed, 6 Dec 2017 03:05:00 +0000 (12:05 +0900)
D-bus does not allow "-" as the signal name.

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

index 460a548..e62e6d0 100644 (file)
@@ -66,7 +66,7 @@ class ProfileChange : public GlobalPolicy<DataSetInt> {
 public:
        ProfileChange() : GlobalPolicy("wifi-profile-change")
        {
-               PolicyEventNotifier::create("wifi-profile-change");
+               PolicyEventNotifier::create("wifi_profile_change");
        }
 
        bool apply(const DataType& value)
@@ -84,7 +84,7 @@ public:
                        ERROR("Failed to set Wi-Fi profile change restriction");
                        return false;
                }
-               PolicyEventNotifier::emit("wifi-profile-change", enable ? "allowed" : "disallowed");
+               PolicyEventNotifier::emit("wifi_profile_change", enable ? "allowed" : "disallowed");
                return true;
        }
 };
@@ -93,13 +93,13 @@ class Hotspot : public GlobalPolicy<DataSetInt> {
 public:
        Hotspot() : GlobalPolicy("wifi-hotspot")
        {
-               PolicyEventNotifier::create("wifi-hotspot");
+               PolicyEventNotifier::create("wifi_hotspot");
        }
 
        bool apply(const DataType& value)
        {
                int enable = value;
-               PolicyEventNotifier::emit("wifi-hotspot", enable ? "allowed" : "disallowed");
+               PolicyEventNotifier::emit("wifi_hotspot", enable ? "allowed" : "disallowed");
                return true;
        }
 };