summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author RoboErik <epastern@google.com> 2011-05-05 10:11:47 -0700
committer RoboErik <epastern@google.com> 2011-05-06 09:17:46 -0700
commit6efb30f40a19a9639076b08df4f64d335c8946a0 (patch)
tree227786b4f11121cb5e97b52d1472fc517d63e619
parent256764c92fbb0d8f2b868307b6c68a75ef4d0481 (diff)
Adds Calendars sync only columns to the contract
Change-Id: I76d649f52e5f2a8bde4b52036df3366c5c5a979a
-rw-r--r--core/java/android/provider/Calendar.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/java/android/provider/Calendar.java b/core/java/android/provider/Calendar.java
index 309a5ec009f5..2eeb7a4b282c 100644
--- a/core/java/android/provider/Calendar.java
+++ b/core/java/android/provider/Calendar.java
@@ -441,6 +441,35 @@ public final class Calendar {
* <P>Type: INTEGER</P>
*/
public static final String MAX_REMINDERS = "maxReminders";
+
+ /**
+ * These fields are only writable by a sync adapter. To modify them the
+ * caller must include CALLER_IS_SYNCADAPTER, _SYNC_ACCOUNT, and
+ * _SYNC_ACCOUNT_TYPE in the query parameters.
+ */
+ public static final String[] SYNC_WRITABLE_COLUMNS = new String[] {
+ _SYNC_ACCOUNT,
+ _SYNC_ACCOUNT_TYPE,
+ _SYNC_ID,
+ _SYNC_TIME,
+ _SYNC_VERSION,
+ _SYNC_DIRTY,
+ OWNER_ACCOUNT,
+ MAX_REMINDERS,
+ CAN_MODIFY_TIME_ZONE,
+ CAN_ORGANIZER_RESPOND,
+ LOCATION,
+ TIMEZONE,
+ ACCESS_LEVEL,
+ DELETED,
+ SYNC1,
+ SYNC2,
+ SYNC3,
+ SYNC4,
+ SYNC5,
+ SYNC6,
+ SYNC_STATE,
+ };
}
/**