diff options
author | David Brown <dab@google.com> | 2010-08-27 12:14:13 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-27 12:14:13 -0700 |
commit | 93637d3ee7b2346426b315627c8fcaf9b4782f93 (patch) | |
tree | 42efd0f56d112beefbf17025d493fa145c74895c /core/java/android/provider | |
parent | 0430dcf174a495540682028b66496520e8a3b38b (diff) | |
parent | b4298cd8ba48db21625a396311e01ed6ad9f516c (diff) | |
download | frameworks_base-93637d3ee7b2346426b315627c8fcaf9b4782f93.zip frameworks_base-93637d3ee7b2346426b315627c8fcaf9b4782f93.tar.gz frameworks_base-93637d3ee7b2346426b315627c8fcaf9b4782f93.tar.bz2 |
am b4298cd8: am 846eb30f: Add SipAddress to ContactsContract.
Merge commit 'b4298cd8ba48db21625a396311e01ed6ad9f516c'
* commit 'b4298cd8ba48db21625a396311e01ed6ad9f516c':
Add SipAddress to ContactsContract.
Diffstat (limited to 'core/java/android/provider')
-rw-r--r-- | core/java/android/provider/ContactsContract.java | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 5775c64..b87e0ec 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -2749,6 +2749,7 @@ public final class ContactsContract { * <li>{@link CommonDataKinds.Website Website.CONTENT_ITEM_TYPE}</li> * <li>{@link CommonDataKinds.Event Event.CONTENT_ITEM_TYPE}</li> * <li>{@link CommonDataKinds.Relation Relation.CONTENT_ITEM_TYPE}</li> + * <li>{@link CommonDataKinds.SipAddress SipAddress.CONTENT_ITEM_TYPE}</li> * </ul> * </p> * </td> @@ -5304,6 +5305,52 @@ public final class ContactsContract { */ public static final String URL = DATA; } + + /** + * <p> + * A data kind representing a SIP address for the contact. + * </p> + * <p> + * You can use all columns defined for {@link ContactsContract.Data} as + * well as the following aliases. + * </p> + * <h2>Column aliases</h2> + * <table class="jd-sumtable"> + * <tr> + * <th>Type</th> + * <th>Alias</th><th colspan='2'>Data column</th> + * </tr> + * <tr> + * <td>String</td> + * <td>{@link #SIP_ADDRESS}</td> + * <td>{@link #DATA1}</td> + * <td></td> + * </tr> + * </table> + */ + public static final class SipAddress implements DataColumnsWithJoins { + // TODO: Ultimately this class will probably implement + // CommonColumns too (in addition to DataColumnsWithJoins) + // since it may make sense to have multiple SIP addresses with + // different types+labels, just like with phone numbers. + // + // But that can be extended in the future without breaking any + // public API, so let's keep this class ultra-simple for now. + + /** + * This utility class cannot be instantiated + */ + private SipAddress() {} + + /** MIME type used when storing this in data table. */ + public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/sip_address"; + + /** + * The SIP address. + * <P>Type: TEXT</P> + */ + public static final String SIP_ADDRESS = DATA1; + } } /** |