Add support for EmitReadingsUpdate property

EmitReadingsUpdate property determines whether Readings
property emits PropertiesChange signal on update.
EmitReadingsUpdate can be used to reduce broadcasting of
signals from Telemetry to lower DBus utilization and hide
Readings update information from other DBus applications.

Tested:
 - Verify if properties are properly propated during Report
   creation.
 - Verify if emitting PropertiesCahgned signal for Readings
   property is disabled when emitReadingsUpdate is set to false.
 - Unit tests are passed with success.

Change-Id: I81be5bc17de6d583dd5820e091d077d474fe424e
Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
diff --git a/src/report.cpp b/src/report.cpp
index c1b7d5f..4d91787 100644
--- a/src/report.cpp
+++ b/src/report.cpp
@@ -4,6 +4,7 @@
 #include "utils/transform.hpp"
 
 #include <phosphor-logging/log.hpp>
+#include <sdbusplus/vtable.hpp>
 
 #include <numeric>
 
@@ -83,9 +84,14 @@
                     return true;
                 },
                 [this](const auto&) { return persistency; });
+
+            auto readingsFlag = sdbusplus::vtable::property_::none;
+            if (emitsReadingsUpdate)
+            {
+                readingsFlag = sdbusplus::vtable::property_::emits_change;
+            }
             dbusIface.register_property_r(
-                "Readings", readings,
-                sdbusplus::vtable::property_::emits_change,
+                "Readings", readings, readingsFlag,
                 [this](const auto&) { return readings; });
             dbusIface.register_property_r(
                 "ReportingType", reportingType,