From ead4f9cef59647a7f980efa2fdcc8c7e17c8def1 Mon Sep 17 00:00:00 2001 From: Ken Shirriff Date: Fri, 22 Jan 2010 12:26:02 -0800 Subject: [PATCH] Add SyncState class for calendar provider. This parallels the SyncState on ContactsContract. --- core/java/android/provider/Calendar.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/core/java/android/provider/Calendar.java b/core/java/android/provider/Calendar.java index 3296bbfb09348..81a21912e0947 100644 --- a/core/java/android/provider/Calendar.java +++ b/core/java/android/provider/Calendar.java @@ -1413,4 +1413,25 @@ public final class Calendar { // TODO: fill out this class when we actually start utilizing extendedproperties // in the calendar application. } + + /** + * A table provided for sync adapters to use for storing private sync state data. + * + * @see SyncStateContract + */ + public static final class SyncState implements SyncStateContract.Columns { + /** + * This utility class cannot be instantiated + */ + private SyncState() {} + + public static final String CONTENT_DIRECTORY = + SyncStateContract.Constants.CONTENT_DIRECTORY; + + /** + * The content:// style URI for this table + */ + public static final Uri CONTENT_URI = + Uri.withAppendedPath(Calendar.CONTENT_URI, CONTENT_DIRECTORY); + } }