ekiga r7809 - in trunk/lib/engine: addressbook components/kab components/local-roster components/opal gui/gtk-frontend



Author: jpuydt
Date: Tue Mar 24 21:07:55 2009
New Revision: 7809
URL: http://svn.gnome.org/viewvc/ekiga?rev=7809&view=rev

Log:
Syntactic sugar : Ekiga::ContactPtr instead of gmref_ptr<Ekiga::Contact>

Modified:
   trunk/lib/engine/addressbook/contact.h
   trunk/lib/engine/components/kab/kab-contact.cpp
   trunk/lib/engine/components/local-roster/local-roster-bridge.cpp
   trunk/lib/engine/components/opal/h323-endpoint.cpp
   trunk/lib/engine/components/opal/h323-endpoint.h
   trunk/lib/engine/components/opal/sip-endpoint.cpp
   trunk/lib/engine/components/opal/sip-endpoint.h
   trunk/lib/engine/gui/gtk-frontend/book-view-gtk.cpp
   trunk/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp

Modified: trunk/lib/engine/addressbook/contact.h
==============================================================================
--- trunk/lib/engine/addressbook/contact.h	(original)
+++ trunk/lib/engine/addressbook/contact.h	Tue Mar 24 21:07:55 2009
@@ -111,6 +111,8 @@
     ChainOfResponsibility<FormRequest*> questions;
   };
 
+
+  typedef gmref_ptr<Contact> ContactPtr;
 /**
  * @}
  */

Modified: trunk/lib/engine/components/kab/kab-contact.cpp
==============================================================================
--- trunk/lib/engine/components/kab/kab-contact.cpp	(original)
+++ trunk/lib/engine/components/kab/kab-contact.cpp	Tue Mar 24 21:07:55 2009
@@ -84,7 +84,7 @@
 
     std::string precision = (*iter).typeLabel ().toUtf8 ().constData ();
     result = result
-      || core.populate_contact_menu (gmref_ptr<Ekiga::Contact>(this),
+      || core.populate_contact_menu (Ekiga::ContactPtr(this),
 				     (*iter).number ().toUtf8 ().constData (),
 				     builder);
   }

Modified: trunk/lib/engine/components/local-roster/local-roster-bridge.cpp
==============================================================================
--- trunk/lib/engine/components/local-roster/local-roster-bridge.cpp	(original)
+++ trunk/lib/engine/components/local-roster/local-roster-bridge.cpp	Tue Mar 24 21:07:55 2009
@@ -66,7 +66,7 @@
     const std::string get_description () const
     { return "\tComponent to push contacts into the local roster"; }
 
-    bool populate_menu (gmref_ptr<Ekiga::Contact> contact,
+    bool populate_menu (Ekiga::ContactPtr contact,
 			const std::string uri,
 			Ekiga::MenuBuilder &builder);
 
@@ -78,7 +78,7 @@
 
 
 bool
-Local::ContactDecorator::populate_menu (gmref_ptr<Ekiga::Contact> contact,
+Local::ContactDecorator::populate_menu (Ekiga::ContactPtr contact,
 					const std::string uri,
 					Ekiga::MenuBuilder &builder)
 {

Modified: trunk/lib/engine/components/opal/h323-endpoint.cpp
==============================================================================
--- trunk/lib/engine/components/opal/h323-endpoint.cpp	(original)
+++ trunk/lib/engine/components/opal/h323-endpoint.cpp	Tue Mar 24 21:07:55 2009
@@ -108,7 +108,7 @@
 {
 }
 
-bool Opal::H323::EndPoint::populate_menu (gmref_ptr<Ekiga::Contact> contact,
+bool Opal::H323::EndPoint::populate_menu (Ekiga::ContactPtr contact,
                                           std::string uri,
                                           Ekiga::MenuBuilder &builder)
 {

Modified: trunk/lib/engine/components/opal/h323-endpoint.h
==============================================================================
--- trunk/lib/engine/components/opal/h323-endpoint.h	(original)
+++ trunk/lib/engine/components/opal/h323-endpoint.h	Tue Mar 24 21:07:55 2009
@@ -70,7 +70,7 @@
       ~EndPoint ();
 
       /* ContactDecorator and PresentityDecorator */
-      bool populate_menu (gmref_ptr<Ekiga::Contact> contact,
+      bool populate_menu (Ekiga::ContactPtr contact,
 			  const std::string uri,
                           Ekiga::MenuBuilder &builder);
 

Modified: trunk/lib/engine/components/opal/sip-endpoint.cpp
==============================================================================
--- trunk/lib/engine/components/opal/sip-endpoint.cpp	(original)
+++ trunk/lib/engine/components/opal/sip-endpoint.cpp	Tue Mar 24 21:07:55 2009
@@ -176,7 +176,7 @@
 }
 
 
-bool Opal::Sip::EndPoint::populate_menu (gmref_ptr<Ekiga::Contact> contact,
+bool Opal::Sip::EndPoint::populate_menu (Ekiga::ContactPtr contact,
                                          const std::string uri,
                                          Ekiga::MenuBuilder &builder)
 {

Modified: trunk/lib/engine/components/opal/sip-endpoint.h
==============================================================================
--- trunk/lib/engine/components/opal/sip-endpoint.h	(original)
+++ trunk/lib/engine/components/opal/sip-endpoint.h	Tue Mar 24 21:07:55 2009
@@ -86,7 +86,7 @@
       ~EndPoint ();
 
       /* ContactDecorator and PresentityDecorator */
-      bool populate_menu (gmref_ptr<Ekiga::Contact> contact,
+      bool populate_menu (Ekiga::ContactPtr contact,
 			  const std::string uri,
                           Ekiga::MenuBuilder &builder);
 

Modified: trunk/lib/engine/gui/gtk-frontend/book-view-gtk.cpp
==============================================================================
--- trunk/lib/engine/gui/gtk-frontend/book-view-gtk.cpp	(original)
+++ trunk/lib/engine/gui/gtk-frontend/book-view-gtk.cpp	Tue Mar 24 21:07:55 2009
@@ -84,7 +84,7 @@
  * BEHAVIOR     : Update the BookView.
  * PRE          : The gpointer must point to the BookViewGtk GObject.
  */
-static void on_contact_added (gmref_ptr<Ekiga::Contact> contact,
+static void on_contact_added (Ekiga::ContactPtr contact,
 			      gpointer data);
 
 
@@ -92,7 +92,7 @@
  * BEHAVIOR     : Update the BookView.
  * PRE          : The gpointer must point to the BookViewGtk GObject.
  */
-static void on_contact_updated (gmref_ptr<Ekiga::Contact> contact,
+static void on_contact_updated (Ekiga::ContactPtr contact,
 				gpointer data);
 
 
@@ -107,7 +107,7 @@
  * BEHAVIOR     : Update the BookView.
  * PRE          : The gpointer must point to the BookViewGtk GObject.
  */
-static void on_contact_removed (gmref_ptr<Ekiga::Contact> contact,
+static void on_contact_removed (Ekiga::ContactPtr contact,
 				gpointer data);
 
 
@@ -155,7 +155,7 @@
  */
 static void
 book_view_gtk_add_contact (BookViewGtk *self,
-                           gmref_ptr<Ekiga::Contact> contact);
+                           Ekiga::ContactPtr contact);
 
 
 /* DESCRIPTION  : /
@@ -164,7 +164,7 @@
  */
 static void
 book_view_gtk_update_contact (BookViewGtk *self,
-                              gmref_ptr<Ekiga::Contact> contact,
+                              Ekiga::ContactPtr contact,
                               GtkTreeIter *iter);
 
 
@@ -174,7 +174,7 @@
  */
 static void
 book_view_gtk_remove_contact (BookViewGtk *self,
-                              gmref_ptr<Ekiga::Contact> contact);
+                              Ekiga::ContactPtr contact);
 
 
 /* DESCRIPTION  : /
@@ -184,14 +184,14 @@
  */
 static gboolean
 book_view_gtk_find_iter_for_contact (BookViewGtk *view,
-                                     gmref_ptr<Ekiga::Contact> contact,
+                                     Ekiga::ContactPtr contact,
                                      GtkTreeIter *iter);
 
 
 
 /* Implementation of the callbacks */
 static void
-on_contact_added (gmref_ptr<Ekiga::Contact> contact,
+on_contact_added (Ekiga::ContactPtr contact,
 		  gpointer data)
 {
   book_view_gtk_add_contact (BOOK_VIEW_GTK (data), contact);
@@ -199,7 +199,7 @@
 
 
 static void
-on_contact_updated (gmref_ptr<Ekiga::Contact> contact,
+on_contact_updated (Ekiga::ContactPtr contact,
 		    gpointer data)
 {
   BookViewGtk *view = NULL;
@@ -232,7 +232,7 @@
 
 
 static void
-on_contact_removed (gmref_ptr<Ekiga::Contact> contact,
+on_contact_removed (Ekiga::ContactPtr contact,
 		    gpointer data)
 {
   BookViewGtk *view = NULL;
@@ -342,7 +342,7 @@
 /* Implementation of the static functions */
 static void
 book_view_gtk_add_contact (BookViewGtk *self,
-                           gmref_ptr<Ekiga::Contact> contact)
+                           Ekiga::ContactPtr contact)
 {
   GtkTreeModel *model = NULL;
   GtkListStore *store = NULL;
@@ -359,7 +359,7 @@
 
 static void
 book_view_gtk_update_contact (BookViewGtk *self,
-			      gmref_ptr<Ekiga::Contact> contact,
+			      Ekiga::ContactPtr contact,
 			      GtkTreeIter *iter)
 {
   GdkPixbuf *icon = NULL;
@@ -382,7 +382,7 @@
 
 static void
 book_view_gtk_remove_contact (BookViewGtk *self,
-                              gmref_ptr<Ekiga::Contact> contact)
+                              Ekiga::ContactPtr contact)
 {
   GtkTreeModel *model = NULL;
   GtkListStore *store = NULL;
@@ -401,7 +401,7 @@
 
 static gboolean
 book_view_gtk_find_iter_for_contact (BookViewGtk *view,
-                                     gmref_ptr<Ekiga::Contact> contact,
+                                     Ekiga::ContactPtr contact,
                                      GtkTreeIter *iter)
 {
   GtkTreeModel *model = NULL;

Modified: trunk/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp
==============================================================================
--- trunk/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp	(original)
+++ trunk/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp	Tue Mar 24 21:07:55 2009
@@ -69,7 +69,7 @@
 
 /* react to a new call being inserted in history */
 static void
-on_contact_added (gmref_ptr<Ekiga::Contact> contact,
+on_contact_added (Ekiga::ContactPtr contact,
 		  GtkListStore *store)
 {
   time_t t;



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