Add safe mode to user interface

putting in code that puts safe mode onto dbus.
Tested: inject error that puts in safe mode, dbus CMD
to read dbus safeMode.
Signed-off-by: Sheldon Bailey <baileysh@us.ibm.com>
Change-Id: I48c5b41a48d0883a8d1e2916da8725391a7bcbc2
diff --git a/pldm.cpp b/pldm.cpp
index 41552ef..6e3dfe6 100644
--- a/pldm.cpp
+++ b/pldm.cpp
@@ -165,6 +165,7 @@
                 log<level::INFO>(
                     fmt::format("PLDM: OCC{} is RUNNING", sensorEntry->second)
                         .c_str());
+
                 callBack(sensorEntry->second, true);
             }
             else if (eventState ==
@@ -185,6 +186,10 @@
                         "PLDM: OCC{} has now STOPPED and system is in SAFE MODE",
                         sensorEntry->second)
                         .c_str());
+
+                // Setting safe mode true
+                safeModeCallBack(true);
+
                 callBack(sensorEntry->second, false);
             }
             else
@@ -718,6 +723,10 @@
                 "pldmRspCallback: OCC{} has now STOPPED and system is in SAFE MODE",
                 instance)
                 .c_str());
+
+        // Setting safe mode true
+        pldmIface->safeModeCallBack(true);
+
         pldmIface->callBack(instance, false);
     }
     else