|
|
|
@ -36,20 +36,22 @@ public class Notes { // 定义类,给模块的其他类提供变量定义
|
|
|
|
|
public static final int ID_CALL_RECORD_FOLDER = -2;
|
|
|
|
|
public static final int ID_TRASH_FOLER = -3;
|
|
|
|
|
|
|
|
|
|
public static final String INTENT_EXTRA_ALERT_DATE = "net.micode.notes.alert_date";
|
|
|
|
|
public static final String INTENT_EXTRA_ALERT_DATE = "net.micode.notes.alert_date";// 设置提醒日期
|
|
|
|
|
public static final String INTENT_EXTRA_BACKGROUND_ID = "net.micode.notes.background_color_id";
|
|
|
|
|
public static final String INTENT_EXTRA_WIDGET_ID = "net.micode.notes.widget_id";
|
|
|
|
|
public static final String INTENT_EXTRA_WIDGET_TYPE = "net.micode.notes.widget_type";
|
|
|
|
|
public static final String INTENT_EXTRA_FOLDER_ID = "net.micode.notes.folder_id";
|
|
|
|
|
public static final String INTENT_EXTRA_CALL_DATE = "net.micode.notes.call_date";
|
|
|
|
|
|
|
|
|
|
public static final String INTENT_EXTRA_LOCK = "net.micode.notes.lock";// 设置锁
|
|
|
|
|
|
|
|
|
|
public static final int TYPE_WIDGET_INVALIDE = -1;
|
|
|
|
|
public static final int TYPE_WIDGET_2X = 0;
|
|
|
|
|
public static final int TYPE_WIDGET_4X = 1;
|
|
|
|
|
|
|
|
|
|
public static class DataConstants { // 获取记录
|
|
|
|
|
public static final String NOTE = TextNote.CONTENT_ITEM_TYPE;
|
|
|
|
|
public static final String CALL_NOTE = CallNote.CONTENT_ITEM_TYPE;
|
|
|
|
|
public static final String NOTE = TextNote.CONTENT_ITEM_TYPE; // 获取便签
|
|
|
|
|
public static final String CALL_NOTE = CallNote.CONTENT_ITEM_TYPE; // 获取通话记录
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -199,6 +201,23 @@ public class Notes { // 定义类,给模块的其他类提供变量定义
|
|
|
|
|
* </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String VERSION = "version"; // 版本名称
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* The lock status
|
|
|
|
|
* <P>
|
|
|
|
|
* Type : INTEGER (long)
|
|
|
|
|
* </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String LOCKED = "locked"; // 锁定状态 ****
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* The picture
|
|
|
|
|
* <P>
|
|
|
|
|
* Type : BLOB
|
|
|
|
|
* </P>
|
|
|
|
|
*/
|
|
|
|
|
public static final String PICTURE = "picture"; // 图片****
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface DataColumns { // 定义数据变量接口
|
|
|
|
@ -296,7 +315,7 @@ public class Notes { // 定义类,给模块的其他类提供变量定义
|
|
|
|
|
public static final String DATA5 = "data5";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static final class TextNote implements DataColumns {
|
|
|
|
|
public static final class TextNote implements DataColumns {// 定义文本便签数据列
|
|
|
|
|
/**
|
|
|
|
|
* Mode to indicate the text in check list mode or not
|
|
|
|
|
* <P>
|
|
|
|
@ -308,14 +327,14 @@ public class Notes { // 定义类,给模块的其他类提供变量定义
|
|
|
|
|
|
|
|
|
|
public static final int MODE_CHECK_LIST = 1; // 列表检查模式
|
|
|
|
|
|
|
|
|
|
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/text_note";
|
|
|
|
|
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/text_note";// 访问数据表类型,
|
|
|
|
|
|
|
|
|
|
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/text_note";
|
|
|
|
|
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/text_note";// 访问数据表类型
|
|
|
|
|
|
|
|
|
|
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/text_note");// 访问数据表uri
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static final class CallNote implements DataColumns {
|
|
|
|
|
public static final class CallNote implements DataColumns { // 定义电话记录数据列, implements是实现接口
|
|
|
|
|
/**
|
|
|
|
|
* Call date for this record
|
|
|
|
|
* <P>
|
|
|
|
@ -332,9 +351,9 @@ public class Notes { // 定义类,给模块的其他类提供变量定义
|
|
|
|
|
*/
|
|
|
|
|
public static final String PHONE_NUMBER = DATA3; // 呼叫号码
|
|
|
|
|
|
|
|
|
|
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/call_note";
|
|
|
|
|
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/call_note";// 访问电话记录类型
|
|
|
|
|
|
|
|
|
|
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/call_note";
|
|
|
|
|
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/call_note";// 访问电话记录类型
|
|
|
|
|
|
|
|
|
|
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/call_note");// 访问电话记录uri
|
|
|
|
|
}
|
|
|
|
|