|
|
|
@ -81,141 +81,141 @@ public class Notes {
|
|
|
|
|
public static final String CREATED_DATE = "created_date";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Latest modified date
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
* 最后修改日期
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String MODIFIED_DATE = "modified_date";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Alert date
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
* 提醒日期
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String ALERTED_DATE = "alert_date";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Folder's name or text content of note
|
|
|
|
|
* <P> Type: TEXT </P>
|
|
|
|
|
/**
|
|
|
|
|
* 文件夹的名称或笔记的文本内容
|
|
|
|
|
* <P> 类型:TEXT </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String SNIPPET = "snippet";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Note's widget id
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
* 笔记的小部件ID
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String WIDGET_ID = "widget_id";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Note's widget type
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
/**
|
|
|
|
|
* 笔记的小部件类型
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String WIDGET_TYPE = "widget_type";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Note's background color's id
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
* 笔记的背景颜色ID
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String BG_COLOR_ID = "bg_color_id";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* For text note, it doesn't has attachment, for multi-media
|
|
|
|
|
* note, it has at least one attachment
|
|
|
|
|
* <P> Type: INTEGER </P>
|
|
|
|
|
/**
|
|
|
|
|
* 对于文本笔记,不包含附件;对于多媒体笔记,至少有一个附件
|
|
|
|
|
* <P> 类型:INTEGER </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String HAS_ATTACHMENT = "has_attachment";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Folder's count of notes
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
* 文件夹中的笔记数量
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String NOTES_COUNT = "notes_count";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The file type: folder or note
|
|
|
|
|
* <P> Type: INTEGER </P>
|
|
|
|
|
/**
|
|
|
|
|
* 文件类型:文件夹或笔记
|
|
|
|
|
* <P> 类型:INTEGER </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String TYPE = "type";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The last sync id
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
* 最后同步ID
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String SYNC_ID = "sync_id";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sign to indicate local modified or not
|
|
|
|
|
* <P> Type: INTEGER </P>
|
|
|
|
|
* 标识是否本地修改
|
|
|
|
|
* <P> 类型:INTEGER </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String LOCAL_MODIFIED = "local_modified";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Original parent id before moving into temporary folder
|
|
|
|
|
* <P> Type : INTEGER </P>
|
|
|
|
|
* 移动到临时文件夹之前的原始父ID
|
|
|
|
|
* <P> 类型:INTEGER </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String ORIGIN_PARENT_ID = "origin_parent_id";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The gtask id
|
|
|
|
|
* <P> Type : TEXT </P>
|
|
|
|
|
* GTask的ID
|
|
|
|
|
* <P> 类型:TEXT </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String GTASK_ID = "gtask_id";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The version code
|
|
|
|
|
* <P> Type : INTEGER (long) </P>
|
|
|
|
|
/**
|
|
|
|
|
* 版本号
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String VERSION = "version";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface DataColumns {
|
|
|
|
|
/**
|
|
|
|
|
* The unique ID for a row
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
* 行的唯一ID
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String ID = "_id";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The MIME type of the item represented by this row.
|
|
|
|
|
* <P> Type: Text </P>
|
|
|
|
|
* 此行所代表的项的MIME类型
|
|
|
|
|
* <P> 类型:Text </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String MIME_TYPE = "mime_type";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The reference id to note that this data belongs to
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
* 此数据所属的笔记的引用ID
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String NOTE_ID = "note_id";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Created data for note or folder
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
/**
|
|
|
|
|
* 创建日期
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String CREATED_DATE = "created_date";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Latest modified date
|
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
|
* 最后修改日期
|
|
|
|
|
* <P> 类型:INTEGER (long) </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String MODIFIED_DATE = "modified_date";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Data's content
|
|
|
|
|
* <P> Type: TEXT </P>
|
|
|
|
|
* 数据内容
|
|
|
|
|
* <P> 类型:TEXT </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String CONTENT = "content";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Generic data column, the meaning is {@link #MIMETYPE} specific, used for
|
|
|
|
|
* integer data type
|
|
|
|
|
* <P> Type: INTEGER </P>
|
|
|
|
|
* 通用数据列,其含义取决于{@link #MIMETYPE},用于整数数据类型
|
|
|
|
|
* <P> 类型:INTEGER </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String DATA1 = "data1";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Generic data column, the meaning is {@link #MIMETYPE} specific, used for
|
|
|
|
|
* integer data type
|
|
|
|
|
* <P> Type: INTEGER </P>
|
|
|
|
|
* 通用数据列,其含义取决于{@link #MIMETYPE},用于整数数据类型
|
|
|
|
|
* <P> 类型:INTEGER </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String DATA2 = "data2";
|
|
|
|
|
|
|
|
|
|