ekiga r6469 - in trunk/lib/engine: framework presence/skel



Author: jpuydt
Date: Thu Jul 17 13:24:06 2008
New Revision: 6469
URL: http://svn.gnome.org/viewvc/ekiga?rev=6469&view=rev

Log:
Simplified PersonalDetails and made the rest cope with it

Modified:
   trunk/lib/engine/framework/personal-details.cpp
   trunk/lib/engine/framework/personal-details.h
   trunk/lib/engine/presence/skel/presence-core.cpp

Modified: trunk/lib/engine/framework/personal-details.cpp
==============================================================================
--- trunk/lib/engine/framework/personal-details.cpp	(original)
+++ trunk/lib/engine/framework/personal-details.cpp	Thu Jul 17 13:24:06 2008
@@ -60,21 +60,21 @@
 void PersonalDetails::set_display_name (const std::string & _display_name)
 {
   display_name = _display_name;
-  personal_details_updated.emit (*this);
+  updated.emit ();
 }
 
 
 void PersonalDetails::set_short_status (const std::string & _short_status)
 {
   short_status = _short_status;
-  personal_details_updated.emit (*this);
+  updated.emit ();
 }
 
 
 void PersonalDetails::set_long_status (const std::string & _long_status)
 {
   long_status = _long_status;
-  personal_details_updated.emit (*this);
+  updated.emit ();
 }
 
 

Modified: trunk/lib/engine/framework/personal-details.h
==============================================================================
--- trunk/lib/engine/framework/personal-details.h	(original)
+++ trunk/lib/engine/framework/personal-details.h	Thu Jul 17 13:24:06 2008
@@ -80,7 +80,7 @@
 
     void set_long_status (const std::string & long_status);
 
-    sigc::signal<void, PersonalDetails &> personal_details_updated;
+    sigc::signal<void> updated;
 
   private:
     std::string display_name;

Modified: trunk/lib/engine/presence/skel/presence-core.cpp
==============================================================================
--- trunk/lib/engine/presence/skel/presence-core.cpp	(original)
+++ trunk/lib/engine/presence/skel/presence-core.cpp	Thu Jul 17 13:24:06 2008
@@ -48,7 +48,7 @@
   Ekiga::PersonalDetails *details = dynamic_cast <Ekiga::PersonalDetails *> (core.get ("personal-details"));
 
   if (details)
-    details->personal_details_updated.connect (sigc::mem_fun (this, &Ekiga::PresencePublisher::on_personal_details_updated));
+    details->updated.connect (sigc::bind (sigc::mem_fun (this, &Ekiga::PresencePublisher::on_personal_details_updated), *details));
   if (account_core)
     account_core->registration_event.connect (sigc::bind (sigc::mem_fun (this, &Ekiga::PresencePublisher::on_registration_event), details));
 }



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