[ekiga] Actor: Move questions from DynamicObject to Actor.



commit 65f24e30270d2f56bc6154d10441c888adfab57c
Author: Damien Sandras <dsandras seconix com>
Date:   Mon May 25 17:14:49 2015 +0200

    Actor: Move questions from DynamicObject to Actor.

 lib/engine/action/actor.h             |    5 +++++
 lib/engine/framework/dynamic-object.h |   11 ++++-------
 2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/lib/engine/action/actor.h b/lib/engine/action/actor.h
index 5499c0a..b8a696a 100644
--- a/lib/engine/action/actor.h
+++ b/lib/engine/action/actor.h
@@ -40,6 +40,8 @@
 
 #include "action.h"
 #include "scoped-connections.h"
+#include "chain-of-responsibility.h"
+#include "form-request.h"
 
 #include <string>
 
@@ -97,6 +99,9 @@ namespace Ekiga {
      */
     const_iterator end () const;
 
+    /** This chain allows the object to present forms to the user
+     */
+    ChainOfResponsibility<FormRequestPtr> questions;
 
   protected:
     /** Add an action to the given Actor.
diff --git a/lib/engine/framework/dynamic-object.h b/lib/engine/framework/dynamic-object.h
index ea60337..667a93f 100644
--- a/lib/engine/framework/dynamic-object.h
+++ b/lib/engine/framework/dynamic-object.h
@@ -38,13 +38,10 @@
 #include <boost/smart_ptr.hpp>
 #include <boost/enable_shared_from_this.hpp>
 
-#include "chain-of-responsibility.h"
-#include "form-request.h"
 #include "menu-builder.h"
 
 namespace Ekiga
 {
-
   template<typename ObjectType>
   class DynamicObject : public virtual boost::enable_shared_from_this<ObjectType>
     {
@@ -60,6 +57,10 @@ namespace Ekiga
        *
        * static boost::shared_ptr<ChildObject> create ();
        *
+       * The engine presents an explicit separation between:
+       *  - The high-level API (e.g. Ekiga::Book)
+       *  - The low-level implementation API (e.g. Ekiga::BookImpl<ContactType>)
+       *
        */
 
       /**
@@ -74,10 +75,6 @@ namespace Ekiga
       /** This signal is emitted when the object has been removed.
        */
       boost::signals2::signal<void(boost::shared_ptr<ObjectType>)> removed;
-
-      /** This chain allows the object to present forms to the user
-       */
-      ChainOfResponsibility<FormRequestPtr> questions;
     };
 };
 #endif


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