diff options
| author | 2009-07-14 17:27:31 -0700 | |
|---|---|---|
| committer | 2009-07-15 17:31:53 -0700 | |
| commit | c991bfc53ff287c512a8ba567135499cc4157900 (patch) | |
| tree | 9292fc7944f6caef3a882f9ce71a48cf6b508dc1 | |
| parent | e97e807a468bf64ad614fca77d350b016f3ce4a9 (diff) | |
Replicating contact option columns between Aggregate and Contact.
| -rw-r--r-- | core/java/android/provider/ContactsContract.java | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index be1bc9e9f912..3f7d5b18d03d 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -79,13 +79,7 @@ public final class ContactsContract { } } - public interface AggregatesColumns { - /** - * The display name for the contact. - * <P>Type: TEXT</P> - */ - public static final String DISPLAY_NAME = "display_name"; - + public interface ContactOptionsColumns { /** * The number of times a person has been contacted * <P>Type: INTEGER</P> @@ -116,6 +110,14 @@ public final class ContactsContract { * <P>Type: INTEGER (0 for false, 1 for true)</P> */ public static final String SEND_TO_VOICEMAIL = "send_to_voicemail"; + } + + public interface AggregatesColumns { + /** + * The display name for the contact. + * <P>Type: TEXT</P> + */ + public static final String DISPLAY_NAME = "display_name"; /** * Reference to the row in the data table holding the primary phone number. @@ -146,7 +148,8 @@ public final class ContactsContract { * Constants for the aggregates table, which contains a record per group * of contact representing the same person. */ - public static final class Aggregates implements BaseColumns, AggregatesColumns { + public static final class Aggregates implements BaseColumns, AggregatesColumns, + ContactOptionsColumns { /** * This utility class cannot be instantiated */ @@ -247,7 +250,7 @@ public final class ContactsContract { /** * Constants for the contacts table, which contains the base contact information. */ - public static final class Contacts implements BaseColumns { + public static final class Contacts implements BaseColumns, ContactOptionsColumns { /** * This utility class cannot be instantiated */ @@ -325,6 +328,29 @@ public final class ContactsContract { public static final String DIRTY = "dirty"; /** + * The aggregation mode for this contact. + * <P>Type: INTEGER</P> + */ + public static final String AGGREGATION_MODE = "aggregation_mode"; + + /** + * Aggregation mode: aggregate asynchronously. + */ + public static final int AGGREGATION_MODE_DEFAULT = 0; + + /** + * Aggregation mode: aggregate at the time the contact is inserted/updated. + */ + public static final int AGGREGATION_MODE_IMMEDITATE = 1; + + /** + * Aggregation mode: never aggregate this contact (note that the contact will not + * have a corresponding Aggregate and therefore will not be included in Aggregates + * query results.) + */ + public static final int AGGREGATION_MODE_DISABLED = 2; + + /** * A sub-directory of a single contact that contains all of their {@link Data} rows. * To access this directory append */ |