ekiga r6731 - trunk/lib/engine/components/avahi-publisher



Author: jpuydt
Date: Sat Aug 30 07:02:16 2008
New Revision: 6731
URL: http://svn.gnome.org/viewvc/ekiga?rev=6731&view=rev

Log:
Connected the avahi publisher to the presence core

Modified:
   trunk/lib/engine/components/avahi-publisher/avahi-publisher-main.cpp

Modified: trunk/lib/engine/components/avahi-publisher/avahi-publisher-main.cpp
==============================================================================
--- trunk/lib/engine/components/avahi-publisher/avahi-publisher-main.cpp	(original)
+++ trunk/lib/engine/components/avahi-publisher/avahi-publisher-main.cpp	Sat Aug 30 07:02:16 2008
@@ -45,10 +45,20 @@
                       int* /*argc*/,
                       char* */*argv*/[])
 {
-  Ekiga::Service *service = NULL;
+  bool result = false;
+  Ekiga::PresenceCore* presence_core = NULL;
 
-  service = new Avahi::PresencePublisher (core);
-  core.add (*service);
+  presence_core
+    = dynamic_cast<Ekiga::PresenceCore*>(core.get ("presence-core"));
 
-  return true;
+  if (presence_core != NULL) {
+
+    Avahi::PresencePublisher* publisher = NULL;
+    publisher = new Avahi::PresencePublisher (core);
+    presence_core->add_presence_publisher (*publisher);
+    core.add (*publisher);
+    result = true;
+  }
+
+  return result;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]