修改了数据结构定义以适应部分新增功能的数据结构 #19

Merged
pjao9fvxr merged 1 commits from zhouzexin_branch into master 4 weeks ago

@ -17,10 +17,6 @@
package net.micode.notes.data;
import android.net.Uri;
/**
* URI
* IDIntent
*/
public class Notes {
public static final String AUTHORITY = "micode_notes";
public static final String TAG = "Notes";
@ -103,6 +99,12 @@ public class Notes {
*/
public static final String SNIPPET = "snippet";
/**
* 便
* Type: TEXT
*/
public static final String TITLE = "title";
/**
* Note's widget id
* <P> Type: INTEGER (long) </P>
@ -169,6 +171,36 @@ public class Notes {
* <P> Type : INTEGER (long) </P>
*/
public static final String VERSION = "version";
/**
* (0-, 1-)
* Type: INTEGER
*/
public static final String IS_PINNED = "is_pinned";
/**
* (0-, 1-)
* Type: INTEGER
*/
public static final String IS_PRIVATE = "is_private";
/**
* (0-, 1-)
* Type: INTEGER
*/
public static final String VIEW_MODE = "view_mode";
/**
* URI
* Type: TEXT
*/
public static final String CUSTOM_BG_URI = "custom_bg_uri";
/**
* 1 ()
* Type: TEXT
*/
public static final String EXPAND_1 = "expand_1";
}
public interface DataColumns {
@ -280,4 +312,13 @@ public class Notes {
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/call_note");
}
public static final class ImageNote implements DataColumns {
// 借用 CONTENT 字段存储图片的 URI 字符串
public static final String IMAGE_URI = CONTENT;
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/image_note";
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/image_note";
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/image_note");
}
}

Loading…
Cancel
Save