[ekiga/ds-gtk-application] Call: A call is now an Actor and a LiveObject.



commit 3cfe2bb36ea92b13922a33399e5ce73f1aaeb692
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Nov 2 16:03:47 2014 +0100

    Call: A call is now an Actor and a LiveObject.
    
    - An Actor can register Actions (hold, hangup, transfer, ...)
      dynamically, depending on the exact implementation of the call.
    - A LiveObject can interact with users through Forms. (e.g. to request
      the user to enter a URI where to transfer a call).

 lib/engine/protocol/call.h |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/lib/engine/protocol/call.h b/lib/engine/protocol/call.h
index 3ec3b19..2a131c3 100644
--- a/lib/engine/protocol/call.h
+++ b/lib/engine/protocol/call.h
@@ -44,6 +44,9 @@
 
 #include <boost/smart_ptr.hpp>
 
+#include "actor.h"
+#include "live-object.h"
+
 namespace Ekiga
 {
 
@@ -56,7 +59,9 @@ namespace Ekiga
    * Everything is handled asynchronously and signaled through the
    * Ekiga::CallManager
    */
-  class Call 
+  class Call
+    : public Actor,
+      public virtual LiveObject
     {
 
   public:
@@ -218,14 +223,14 @@ namespace Ekiga
        */
       boost::signals2::signal<void(void)> held;
 
-      /* Signal emitted when the call is retrieved
-       */
-      boost::signals2::signal<void(void)> retrieved;
-
       /* Signal emitted when the call is being setup
        */
       boost::signals2::signal<void(void)> setup;
 
+      /* Signal emitted when the call is retrieved
+       */
+      boost::signals2::signal<void(void)> retrieved;
+
       /* Signal emitted when the remote party is ringing
        */
       boost::signals2::signal<void(void)> ringing;


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