Modify signal name 85/162885/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20180111.051211 accepted/tizen/5.0/unified/20181102.021504 accepted/tizen/unified/20180306.061315 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:01:12 +0000 (12:01 +0900)
committeryeji01.kim <yeji01.kim@samsung.com>
Wed, 6 Dec 2017 03:01:12 +0000 (12:01 +0900)
D-bus does not allow "-" as the signal name.

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

index 1d2f18d4d3fadecb5b56fcdd5b12f66b70f7ddfd..ae91dd2671c120bf9cc9aa5aae83b4e5be4e301a 100644 (file)
@@ -31,7 +31,7 @@ class ExternalStorageState : public GlobalPolicy<DataSetInt> {
 public:
        ExternalStorageState() : GlobalPolicy("external-storage")
        {
-               PolicyEventNotifier::create("external-storage");
+               PolicyEventNotifier::create("external_storage");
        }
 
        bool apply(const DataType& value)
@@ -48,7 +48,7 @@ public:
                }
 
                if (ret == 0) {
-                       PolicyEventNotifier::emit("external-storage", enable ? "allowed" : "disallowed");
+                       PolicyEventNotifier::emit("external_storage", enable ? "allowed" : "disallowed");
                        return true;
                }