Modify signal name 73/162873/1 accepted/tizen_4.0_unified accepted/tizen/4.0/unified/20180111.051217 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:47:38 +0000 (10:47 +0900)
committeryeji01.kim <yeji01.kim@samsung.com>
Wed, 6 Dec 2017 01:47:38 +0000 (10:47 +0900)
D-bus does not allow "-" as signal name.

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

index cc9f2a13fa9859bf3f938d81474f8cd0ad35850d..968e64900f2953c639d04d8c53ff2cfdf4c444e8 100644 (file)
@@ -26,13 +26,13 @@ class PopImap : public GlobalPolicy<DataSetInt> {
 public:
        PopImap() : GlobalPolicy("popimap-email")
        {
-               PolicyEventNotifier::create("popimap-email");
+               PolicyEventNotifier::create("popimap_email");
        }
 
        bool apply(const DataType& value)
        {
                int enable = value;
-               PolicyEventNotifier::emit("popimap-email", enable ? "allowed" : "disallowed");
+               PolicyEventNotifier::emit("popimap_email", enable ? "allowed" : "disallowed");
                return true;
        }
 };