[ekiga] Made the opal account subscribe/unsubscribe from presence information



commit 3312d000ee40756bfb3e4631125e383b2e743295
Author: Snark <jpuydt gnome org>
Date:   Sun Dec 26 22:24:34 2010 +0100

    Made the opal account subscribe/unsubscribe from presence information
    
    but there is no code yet to actually handle receiving said information

 lib/engine/components/opal/opal-account.cpp |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 58f1bf0..6004aac 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -505,13 +505,23 @@ Opal::Account::publish (const Ekiga::PersonalDetails& details)
 void
 Opal::Account::fetch (const std::string uri)
 {
-  std::cout << __PRETTY_FUNCTION__ << " " << uri << std::endl;
+  if (presentity && presentity->IsOpen ()) {
+
+    std::cout << __PRETTY_FUNCTION__ << " " << uri << std::endl;
+
+    presentity->SubscribeToPresence (PString (uri));
+  }
 }
 
 void
 Opal::Account::unfetch (const std::string uri)
 {
-  std::cout << __PRETTY_FUNCTION__ << " " << uri << std::endl;
+  if (presentity && presentity->IsOpen ()) {
+
+    std::cout << __PRETTY_FUNCTION__ << " " << uri << std::endl;
+
+    presentity->UnsubscribeFromPresence (PString (uri));
+  }
 }
 
 void



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