[ekiga] Added a call back button to the missed call notification.



commit 1712a1b8db0e1fc90596af9d6b1a0960853dbb23
Author: Damien Sandras <dsandras beip be>
Date:   Thu May 10 18:33:03 2012 +0200

    Added a call back button to the missed call notification.
    
    It allows calling back a missed call easily.

 lib/engine/components/opal/opal-call.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-call.cpp b/lib/engine/components/opal/opal-call.cpp
index 6c5d536..622dd7e 100644
--- a/lib/engine/components/opal/opal-call.cpp
+++ b/lib/engine/components/opal/opal-call.cpp
@@ -45,6 +45,7 @@
 
 #include "opal-call.h"
 #include "call.h"
+#include "call-core.h"
 
 using namespace Opal;
 
@@ -671,12 +672,16 @@ Opal::Call::emit_established_in_main ()
 void
 Opal::Call::emit_missed_in_main ()
 {
+  boost::shared_ptr<Ekiga::CallCore> call_core = core.get<Ekiga::CallCore> ("call-core");
   std::stringstream msg;
 
   missed ();
   msg << _("Missed call from") << " " << get_remote_party_name ();
   boost::shared_ptr<Ekiga::Notification> notif (new Ekiga::Notification (Ekiga::Notification::Warning,
-                                                                         _("Missed call"), msg.str ()));
+                                                                         _("Missed call"), msg.str (),
+                                                                         _("Call"),
+                                                                         boost::bind (&Ekiga::CallCore::dial, call_core,
+                                                                                      get_remote_uri ())));
   notification_core->push_notification (notif);
 }
 



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