[ekiga] Simplified Opal::Call's signal handling



commit d7edd9aec7614f60700452766649754f261b24b2
Author: Julien Puydt <jpuydt free fr>
Date:   Fri Feb 1 08:59:48 2013 +0100

    Simplified Opal::Call's signal handling

 lib/engine/components/opal/opal-call.cpp |   19 ++-----------------
 lib/engine/components/opal/opal-call.h   |    2 --
 2 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-call.cpp b/lib/engine/components/opal/opal-call.cpp
index 2b7a92a..413a594 100644
--- a/lib/engine/components/opal/opal-call.cpp
+++ b/lib/engine/components/opal/opal-call.cpp
@@ -505,6 +505,8 @@ Opal::Call::OnCleared ()
 
     Ekiga::Runtime::run_in_main (boost::bind (&Opal::Call::emit_cleared_in_main, this, reason));
   }
+
+  OpalCall::OnCleared ();
 }
 
 
@@ -532,9 +534,6 @@ Opal::Call::OnSetUp (OpalConnection & connection)
   Ekiga::Runtime::run_in_main (boost::bind (&Opal::Call::emit_setup_in_main, this));
   call_setup = true;
 
-  cleared.connect (boost::bind (&Opal::Call::on_cleared_call, this, _1));
-  missed.connect (boost::bind (&Opal::Call::on_missed_call, this));
-
   new CallSetup (*this, connection);
 
   return true;
@@ -676,20 +675,6 @@ Opal::Call::OnNoAnswerTimeout (PTimer &,
   }
 }
 
-
-void
-Opal::Call::on_cleared_call (std::string /*reason*/)
-{
-  OpalCall::OnCleared ();
-}
-
-
-void
-Opal::Call::on_missed_call ()
-{
-  OpalCall::OnCleared ();
-}
-
 void
 Opal::Call::emit_established_in_main ()
 {
diff --git a/lib/engine/components/opal/opal-call.h b/lib/engine/components/opal/opal-call.h
index bfe1b45..b5ce778 100644
--- a/lib/engine/components/opal/opal-call.h
+++ b/lib/engine/components/opal/opal-call.h
@@ -280,8 +280,6 @@ private:
     bool outgoing;
 
 private:
-    void on_cleared_call (std::string);
-    void on_missed_call ();
 
     void emit_established_in_main ();
     void emit_missed_in_main ();



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