|
|
|
@ -15,7 +15,6 @@
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package net.micode.notes.data;
|
|
|
|
|
|
|
|
|
|
import android.net.Uri;
|
|
|
|
|
public class Notes {
|
|
|
|
|
// 定义Notes类的常量
|
|
|
|
@ -29,8 +28,6 @@ public class Notes {
|
|
|
|
|
public static final int TYPE_FOLDER = 1;
|
|
|
|
|
// 定义一个常量,表示Notes的类型为System
|
|
|
|
|
public static final int TYPE_SYSTEM = 2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 定义根文件夹的ID
|
|
|
|
|
public static final int ID_ROOT_FOLDER = 0;
|
|
|
|
|
// 定义临时文件夹的ID
|
|
|
|
@ -39,7 +36,6 @@ public class Notes {
|
|
|
|
|
public static final int ID_CALL_RECORD_FOLDER = -2;
|
|
|
|
|
// 定义回收站的ID
|
|
|
|
|
public static final int ID_TRASH_FOLER = -3;
|
|
|
|
|
|
|
|
|
|
// 定义Intent的额外参数
|
|
|
|
|
// 定义一个常量,表示提醒日期的意图
|
|
|
|
|
public static final String INTENT_EXTRA_ALERT_DATE = "net.micode.notes.alert_date";
|
|
|
|
@ -53,28 +49,20 @@ public class Notes {
|
|
|
|
|
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 int TYPE_WIDGET_INVALIDE = -1; // 无效的widget类型
|
|
|
|
|
public static final int TYPE_WIDGET_2X = 0; // 2x的widget类型
|
|
|
|
|
public static final int TYPE_WIDGET_4X = 1; // 4x的widget类型
|
|
|
|
|
|
|
|
|
|
public static class DataConstants {
|
|
|
|
|
public static final String NOTE = TextNote.CONTENT_ITEM_TYPE; // 文本笔记的content type
|
|
|
|
|
public static final String CALL_NOTE = CallNote.CONTENT_ITEM_TYPE; // 呼叫笔记的content type
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 定义一个常量,表示note的Uri
|
|
|
|
|
public static final Uri CONTENT_NOTE_URI = Uri.parse("content://" + AUTHORITY + "/note");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 定义一个常量,表示数据内容的URI
|
|
|
|
|
public static final Uri CONTENT_DATA_URI = Uri.parse("content://" + AUTHORITY + "/data");
|
|
|
|
|
|
|
|
|
|
// 定义一个接口,用于定义Note的列
|
|
|
|
|
public interface NoteColumns {
|
|
|
|
|
|
|
|
|
|
public interface NoteColumns {
|
|
|
|
|
// 定义一个常量,表示ID
|
|
|
|
|
public static final String ID = "_id";
|
|
|
|
|
|
|
|
|
|