ekiga r6731 - trunk/lib/engine/components/avahi-publisher
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6731 - trunk/lib/engine/components/avahi-publisher
- Date: Sat, 30 Aug 2008 07:02:16 +0000 (UTC)
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]