GNOME Bugzilla – Bug 642500
Folks needs API for specifying a contact's birthday
Last modified: 2011-03-03 17:49:35 UTC
We should probably start with a trivial interface like namespace Folks { interface BirthdayOwner : { public DateTime birthday { get; set; } public string calendarEventId { get; set; } } } and have Individual and each of the backends' Persona implementations implement it.
Created attachment 182315 [details] [review] Add BirthdayOwner interface First implementation.
Thanks. Merged: commit f30fc9be93996d99b8700f8d8cad85a6ff901e32 Author: Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk> Date: Wed Mar 2 18:44:37 2011 +0000 Add BirthdayOwner interface Fixes: bgo#642500 - Folks needs API for specifying a contact's birthday NEWS | 1 + folks/Makefile.am | 1 + folks/birthday-owner.vala | 45 +++++++++++++++++++++++++++++++++++++++++++ folks/individual.vala | 47 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+), 0 deletions(-)
Created attachment 182371 [details] [review] Complements previous patch. I forgot to add the corresponding _update_birthday () call inside _update_fields (). Sorry about that.
Created attachment 182372 [details] [review] Complements previous patch. Corrected typo in the comment.
(In reply to comment #4) > Created an attachment (id=182372) [details] [review] > Complements previous patch. > > Corrected typo in the comment. Applied. Thanks. commit 203e1151df1fdea310c738c1501a84169b0330b8 Author: Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk> Date: Thu Mar 3 17:20:16 2011 +0000 Ensure we update an Individual's birthday along with the other fields. folks/individual.vala | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)