1 /* 2 * Copyright (C) 2006 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.provider; 18 19 /** 20 * Columns for tables that are synced to a server. 21 * @hide 22 */ 23 public interface SyncConstValue 24 { 25 /** 26 * The account that was used to sync the entry to the device. 27 * <P>Type: TEXT</P> 28 */ 29 public static final String _SYNC_ACCOUNT = "_sync_account"; 30 31 /** 32 * The type of the account that was used to sync the entry to the device. 33 * <P>Type: TEXT</P> 34 */ 35 public static final String _SYNC_ACCOUNT_TYPE = "_sync_account_type"; 36 37 /** 38 * The unique ID for a row assigned by the sync source. NULL if the row has never been synced. 39 * <P>Type: TEXT</P> 40 */ 41 public static final String _SYNC_ID = "_sync_id"; 42 43 /** 44 * The last time, from the sync source's point of view, that this row has been synchronized. 45 * <P>Type: INTEGER (long)</P> 46 */ 47 public static final String _SYNC_TIME = "_sync_time"; 48 49 /** 50 * The version of the row, as assigned by the server. 51 * <P>Type: TEXT</P> 52 */ 53 public static final String _SYNC_VERSION = "_sync_version"; 54 55 /** 56 * Used in temporary provider while syncing, always NULL for rows in persistent providers. 57 * <P>Type: INTEGER (long)</P> 58 */ 59 public static final String _SYNC_LOCAL_ID = "_sync_local_id"; 60 61 /** 62 * Used only in persistent providers, and only during merging. 63 * <P>Type: INTEGER (long)</P> 64 */ 65 public static final String _SYNC_MARK = "_sync_mark"; 66 67 /** 68 * Used to indicate that local, unsynced, changes are present. 69 * <P>Type: INTEGER (long)</P> 70 */ 71 public static final String _SYNC_DIRTY = "_sync_dirty"; 72 73 /** 74 * Used to indicate that this account is not synced 75 */ 76 public static final String NON_SYNCABLE_ACCOUNT = "non_syncable"; 77 78 /** 79 * Used to indicate that this account is not synced 80 */ 81 public static final String NON_SYNCABLE_ACCOUNT_TYPE = "android.local"; 82 } 83