[ekiga/ds-gtk-application] PresenceCore: Turn it into an URIActionProviderStore.



commit db5f79ddbb22f37868eb038d0225b434c2552bfc
Author: Damien Sandras <dsandras beip be>
Date:   Sun Sep 14 19:10:29 2014 +0200

    PresenceCore: Turn it into an URIActionProviderStore.
    
    This allows the Opal CallManager to add Actions to the PresenceCore.

 lib/engine/components/opal/opal-call-manager.cpp |    6 +++++-
 lib/engine/presence/presence-core.h              |    2 ++
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-call-manager.cpp 
b/lib/engine/components/opal/opal-call-manager.cpp
index b8a25aa..ff71c91 100644
--- a/lib/engine/components/opal/opal-call-manager.cpp
+++ b/lib/engine/components/opal/opal-call-manager.cpp
@@ -211,9 +211,13 @@ CallManager::CallManager (Ekiga::ServiceCore& core)
     boost::shared_ptr<Ekiga::Settings> (new Ekiga::Settings (PERSONAL_DATA_SCHEMA));
   personal_data_settings->changed.connect (boost::bind (&CallManager::setup, this, _1));
 
-  /* ContactActor registration */
+  /* ContactActor & PresenceCore registration */
+  // FIXME could move to CallCore
   boost::shared_ptr<Ekiga::ContactCore> contact_core = core.get< Ekiga::ContactCore > ("contact-core");
   contact_core->push_back (Ekiga::URIActionProviderPtr (this));
+
+  boost::shared_ptr<Ekiga::PresenceCore> presence_core = core.get< Ekiga::PresenceCore > ("presence-core");
+  presence_core->push_back (Ekiga::URIActionProviderPtr (this));
 }
 
 
diff --git a/lib/engine/presence/presence-core.h b/lib/engine/presence/presence-core.h
index 0055585..3c7a7dd 100644
--- a/lib/engine/presence/presence-core.h
+++ b/lib/engine/presence/presence-core.h
@@ -43,6 +43,7 @@
 #include "cluster.h"
 #include "account-core.h"
 #include "personal-details.h"
+#include "action-provider.h"
 
 namespace Ekiga
 {
@@ -133,6 +134,7 @@ namespace Ekiga
    */
   class PresenceCore:
     public virtual LiveObject,
+    public URIActionProviderStore,
     public Service
   {
   public:


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