Refactored connman signal callback to generic D-Bus signal callback.
[profile/ivi/settings-daemon.git] / plugins / connman / connman_manager.cpp
index 594671f..a6449d7 100644 (file)
@@ -25,8 +25,8 @@
  */
 
 #include "connman_manager.hpp"
-#include "signal_callback.hpp"
 
+#include <settingsd/dbus_signal_callback.hpp>
 #include <settingsd/glib_traits.hpp>
 #include <settingsd/smart_ptr.hpp>
 
@@ -48,10 +48,18 @@ ivi::settings::connman_manager::connman_manager(
         connman_.object_path(),
         nullptr,
         G_DBUS_SIGNAL_FLAGS_NONE,
-        on_connman_signal,
+        on_dbus_signal,
         &event_callback_,
         nullptr))
 {
+  // The ServicesChanged signal parameters are:
+  //
+  //   array{object, dict}, array{object})
+  //
+  // where "object" is the D-Bus object path, and "dict" is a
+  // dictionary of object-specific properties.  The first parameter is
+  // list of changed services.  The second is a list of removed
+  // services.
 }
 
 ivi::settings::connman_manager::~connman_manager()