[ekiga] Made the opal bank push the information received by the accounts up



commit 469409b4a44fc899ef6f693c36ecbcedc542f7e9
Author: Snark <jpuydt gnome org>
Date:   Sun Dec 26 22:19:03 2010 +0100

    Made the opal bank push the information received by the accounts up
    
    That means the framework is complete : as soon as the opal accounts will
    really get presence&status information, the rest will magically work.

 lib/engine/components/opal/opal-bank.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-bank.cpp b/lib/engine/components/opal/opal-bank.cpp
index 95066da..b74efdc 100644
--- a/lib/engine/components/opal/opal-bank.cpp
+++ b/lib/engine/components/opal/opal-bank.cpp
@@ -60,6 +60,8 @@ Opal::Bank::Bank (Ekiga::ServiceCore &_core): core(_core)
 
     add_account (account);
     Ekiga::BankImpl<Account>::add_connection (account, account->trigger_saving.connect (boost::bind (&Opal::Bank::save, this)));
+    Ekiga::BankImpl<Account>::add_connection (account, account->presence_received.connect (boost::ref (presence_received)));
+    Ekiga::BankImpl<Account>::add_connection (account, account->status_received.connect (boost::ref (status_received)));
     accounts_iter = g_slist_next (accounts_iter);
   }
 
@@ -207,6 +209,8 @@ void Opal::Bank::add (Account::Type acc_type,
 						     timeout));
   add_account (account);
   Ekiga::BankImpl<Account>::add_connection (account, account->trigger_saving.connect (boost::bind (&Opal::Bank::save, this)));
+  Ekiga::BankImpl<Account>::add_connection (account, account->presence_received.connect (boost::ref (presence_received)));
+  Ekiga::BankImpl<Account>::add_connection (account, account->status_received.connect (boost::ref (status_received)));
 }
 
 void



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