[folks] Add uid to PostalAddress to facilitate tracking
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Add uid to PostalAddress to facilitate tracking
- Date: Fri, 4 Mar 2011 20:19:05 +0000 (UTC)
commit 952c07bb01e57d10a5abf0a482bbd277456e9595
Author: Raul Gutierrez Segales <raul gutierrez segales collabora co uk>
Date: Fri Mar 4 16:39:45 2011 +0000
Add uid to PostalAddress to facilitate tracking
NEWS | 1 +
folks/postal-address-owner.vala | 16 ++++++++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index 8384415..ac810f8 100644
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,7 @@ API changes:
* Add BirthdayOwner interface
* Add NoteOwner interface
* Add PostalAddressOwner interface
+* Add PostalAddressOwner.uid as a convenience for backends
Overview of changes from libfolks 0.3.5 to libfolks 0.3.6
=========================================================
diff --git a/folks/postal-address-owner.vala b/folks/postal-address-owner.vala
index b50b6dc..91198fe 100644
--- a/folks/postal-address-owner.vala
+++ b/folks/postal-address-owner.vala
@@ -16,6 +16,7 @@
*
* Authors:
* Marco Barisione <marco barisione collabora co uk>
+ * Raul Gutierrez Segales <raul gutierrez segales collabora co uk>
*/
using GLib;
@@ -145,6 +146,16 @@ public class Folks.PostalAddress : Object
}
}
+ private string _uid = "";
+ /**
+ * The UID of the Postal Address (if any).
+ */
+ public string uid
+ {
+ get { return _uid; }
+ construct set { _uid = (value != null ? value : ""); }
+ }
+
/**
* Create a PostalAddress.
*
@@ -160,7 +171,7 @@ public class Folks.PostalAddress : Object
*/
public PostalAddress (string? po_box, string? extension, string? street,
string? locality, string? region, string? postal_code, string? country,
- string? address_format, List<string> types)
+ string? address_format, List<string> types, string? uid)
{
Object (po_box: po_box,
extension: extension,
@@ -170,7 +181,8 @@ public class Folks.PostalAddress : Object
postal_code: postal_code,
country: country,
address_format: address_format,
- types: types);
+ types: types,
+ uid: uid);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]