Remove use of sdbusplus::object::object

Cannot use this interface wrapper with property import
constructors at the moment, so just use the interface
classes directly.

Emit interfaces added/removed signals manually.

Change-Id: I688e1b774756d48beac7511dda0387b627e57c1f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/manager.cpp b/manager.cpp
index bb94c21..7d0e7d3 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -179,10 +179,14 @@
 void Manager::destroyObjects(
     const std::vector<const char*>& paths)
 {
+    std::string p;
+
     for (const auto& path : paths)
     {
-        std::string p{path};
-        _refs.erase(_root + p);
+        p.assign(_root);
+        p.append(path);
+        _bus.emit_object_removed(p.c_str());
+        _refs.erase(p);
     }
 }
 
@@ -211,13 +215,9 @@
         // a container.
         InterfaceComposite ref;
 
-        auto i = ifaces.size();
         for (auto& iface : ifaces)
         {
             auto& props = iface.second;
-
-            // Defer sending any signals until the last interface.
-            auto deferSignals = --i != 0;
             auto pMakers = _makers.find(iface.first.c_str());
 
             if (pMakers == _makers.end())
@@ -233,8 +233,7 @@
                 maker(
                     _bus,
                     absPath.c_str(),
-                    props,
-                    deferSignals));
+                    props));
         }
 
         if (!ref.empty())
@@ -244,6 +243,7 @@
             // to it if needed.
             _refs.emplace(
                 absPath, std::move(ref));
+            _bus.emit_object_added(absPath.c_str());
         }
     }
 }