[folks] Rename Phoneable -> PhoneDetails



commit 3c972a9ee7e701e1cd6ce0b23f491b6d9f6ee352
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Thu Mar 10 16:40:50 2011 -0800

    Rename Phoneable -> PhoneDetails
    
    Helps bgo#642513 - Folks "Owner" interfaces are awkwardly-named

 NEWS                                         |    1 +
 folks/Makefile.am                            |    2 +-
 folks/individual.vala                        |    8 ++++----
 folks/{phoneable.vala => phone-details.vala} |    2 +-
 4 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/NEWS b/NEWS
index 0d86b65..ec323b4 100644
--- a/NEWS
+++ b/NEWS
@@ -35,6 +35,7 @@ API changes:
 * Rename Groupable -> GroupDetails
 * Rename IMable -> ImDetails
 * Rename NameOwner -> NameDetails
+* Rename Phoneable -> PhoneDetails
 
 Overview of changes from libfolks 0.3.5 to libfolks 0.3.6
 =========================================================
diff --git a/folks/Makefile.am b/folks/Makefile.am
index c5efb47..efa0258 100644
--- a/folks/Makefile.am
+++ b/folks/Makefile.am
@@ -25,13 +25,13 @@ libfolks_la_SOURCES = \
 	im-details.vala \
 	name-details.vala \
 	note-details.vala \
+	phone-details.vala \
 	presence-owner.vala \
 	individual.vala \
 	individual-aggregator.vala \
 	linked-hash-set.vala \
 	persona.vala \
 	persona-store.vala \
-	phoneable.vala \
 	postal-address-owner.vala \
 	types.vala \
 	urlable.vala \
diff --git a/folks/individual.vala b/folks/individual.vala
index 0e553c2..d1f3f63 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -74,7 +74,7 @@ public class Folks.Individual : Object,
     NameDetails,
     NoteDetails,
     PresenceOwner,
-    Phoneable,
+    PhoneDetails,
     PostalAddressOwner,
     RoleOwner,
     Urlable
@@ -1105,10 +1105,10 @@ public class Folks.Individual : Object,
               str_hash, str_equal);
       foreach (var persona in this._persona_list)
         {
-          var phoneable = persona as Phoneable;
-          if (phoneable != null)
+          var phone_details = persona as PhoneDetails;
+          if (phone_details != null)
             {
-              foreach (unowned FieldDetails fd in phoneable.phone_numbers)
+              foreach (unowned FieldDetails fd in phone_details.phone_numbers)
                 {
                   if (fd.value == null)
                     continue;
diff --git a/folks/phoneable.vala b/folks/phone-details.vala
similarity index 96%
rename from folks/phoneable.vala
rename to folks/phone-details.vala
index 7203794..8086a0b 100644
--- a/folks/phoneable.vala
+++ b/folks/phone-details.vala
@@ -26,7 +26,7 @@ using GLib;
  *
  * @since 0.3.5
  */
-public interface Folks.Phoneable : Object
+public interface Folks.PhoneDetails : Object
 {
   /**
    * The phone numbers of the contact.



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