From 20b45ce9a680394724790d3b4e64985070110f35 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Wed, 6 Feb 2013 16:20:30 +0000 Subject: [PATCH] Adds some additional detail categories and labels for contact source details. --- .../service/contactsource/ContactDetail.java | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/src/net/java/sip/communicator/service/contactsource/ContactDetail.java b/src/net/java/sip/communicator/service/contactsource/ContactDetail.java index 23e70928d..9cce7d332 100644 --- a/src/net/java/sip/communicator/service/contactsource/ContactDetail.java +++ b/src/net/java/sip/communicator/service/contactsource/ContactDetail.java @@ -35,6 +35,18 @@ */ public class ContactDetail { + /** + * The standard/well-known category of a ContactDetail representing + * personal details, like name, last name, nickname. + */ + public static final String CATEGORY_PERSONAL = "Personal"; + + /** + * The standard/well-known category of a ContactDetail representing + * organization details, like organization name and job title. + */ + public static final String CATEGORY_ORGANIZATION = "Organisation"; + /** * The standard/well-known category of a ContactDetail representing * an e-mail address. @@ -53,6 +65,30 @@ public class ContactDetail */ public static final String CATEGORY_PHONE = "Phone"; + /** + * The standard/well-known category of a ContactDetail representing + * a postal address. + */ + public static final String CATEGORY_ADDRESS = "Address"; + + /** + * The standard/well-known label of a ContactDetail representing a + * name. It could be an organization name or a personal name. + */ + public static final String LABEL_NAME = "Name"; + + /** + * The standard/well-known label of a ContactDetail representing a + * last name. + */ + public static final String LABEL_LAST_NAME = "Last name"; + + /** + * The standard/well-known label of a ContactDetail representing a + * nickname. + */ + public static final String LABEL_NICK_NAME = "Nickname"; + /** * The standard/well-known label of a ContactDetail representing an * address of a contact at their home. @@ -71,6 +107,48 @@ public class ContactDetail */ public static final String LABEL_WORK = "Work"; + /** + * The standard/well-known label of a ContactDetail representing a + * fax number. + */ + public static final String LABEL_FAX = "Fax"; + + /** + * The standard/well-known label of a ContactDetail representing a + * different number. + */ + public static final String LABEL_OTHER = "Other"; + + /** + * The standard/well-known label of a ContactDetail representing a + * country name. + */ + public static final String LABEL_COUNTRY = "Country"; + + /** + * The standard/well-known label of a ContactDetail representing a + * city name. + */ + public static final String LABEL_CITY = "City"; + + /** + * The standard/well-known label of a ContactDetail representing a + * street address. + */ + public static final String LABEL_STREET = "Street"; + + /** + * The standard/well-known label of a ContactDetail representing a + * postal code. + */ + public static final String LABEL_POSTAL_CODE = "Postal code"; + + /** + * The standard/well-known label of a ContactDetail representing a + * job title. + */ + public static final String LABEL_JOB_TITLE = "Job title"; + /** * The category of this ContactQuery. For example, * {@link #CATEGORY_PHONE} or {@link #CATEGORY_EMAIL}.