Merge change 3049

* changes:
  Adding a new type: aggregation_exception.
This commit is contained in:
Android (Google) Code Review
2009-06-03 13:40:44 -07:00

View File

@@ -706,4 +706,47 @@ public final class ContactsContract {
}
}
/**
* Constants for the contact aggregation exceptions table, which contains
* aggregation rules overriding those used by automatic aggregation.
*/
public static final class AggregationExceptions {
/**
* This utility class cannot be instantiated
*/
private AggregationExceptions() {}
/**
* The content:// style URI for this table
*/
public static final Uri CONTENT_URI =
Uri.withAppendedPath(AUTHORITY_URI, "aggregation_exception");
/**
* The MIME type of {@link #CONTENT_URI} providing a directory of data.
*/
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/aggregation_exception";
/**
* The type of exception: {@link #TYPE_NEVER_MATCH} or {@link #TYPE_ALWAYS_MATCH}.
*
* <P>Type: INTEGER</P>
*/
public static final String TYPE = "type";
public static final int TYPE_NEVER_MATCH = 0;
public static final int TYPE_ALWAYS_MATCH = 1;
/**
* A reference to the {@link android.provider.ContactsContract.Contacts#_ID} of one of
* the contacts that the rule applies to.
*/
public static final String CONTACT_ID1 = "contact_id1";
/**
* A reference to the {@link android.provider.ContactsContract.Contacts#_ID} of the other
* contact that the rule applies to.
*/
public static final String CONTACT_ID2 = "contact_id2";
}
}