Update Notes.java

main
pf45q8f3g 7 months ago
parent 8d8167ca08
commit 0804d98fb6

@ -1,48 +1,45 @@
/*
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
* (c) 2010-2011, MiCode (www.micode.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* 使 Apache License, Version 2.0
* 使
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*
*/
package net.micode.notes.data;
import android.net.Uri;
/**
* Notes 便 Uri
* 便便
* Notes 便使 URI
* 便便
*/
public class Notes {
/**
* ContentProvider
* ContentProvider
*/
public static final String AUTHORITY = "micode_notes";
/**
*
*
*/
public static final String TAG = "Notes";
/**
* 便
* 便
*/
public static final int TYPE_NOTE = 0; // 普通便签
public static final int TYPE_FOLDER = 1; // 文件夹
public static final int TYPE_SYSTEM = 2; // 系统便签
/**
* ID
* ID
*/
public static final int ID_ROOT_FOLDER = 0; // 根文件夹 ID
public static final int ID_TEMPARAY_FOLDER = -1; // 临时文件夹 ID
@ -50,7 +47,7 @@ public class Notes {
public static final int ID_TRASH_FOLDER = -3; // 回收站文件夹 ID
/**
*
*
*/
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";
@ -60,7 +57,7 @@ public class Notes {
public static final String INTENT_EXTRA_CALL_DATE = "net.micode.notes.call_date";
/**
*
*
*/
public static final int TYPE_WIDGET_INVALID = -1; // 无效小部件类型
public static final int TYPE_WIDGET_2X = 0; // 2x 小部件
@ -75,12 +72,12 @@ public class Notes {
}
/**
* 便 Uri
* 便 URI
*/
public static final Uri CONTENT_NOTE_URI = Uri.parse("content://" + AUTHORITY + "/note");
/**
* Uri
* URI
*/
public static final Uri CONTENT_DATA_URI = Uri.parse("content://" + AUTHORITY + "/data");
@ -127,7 +124,7 @@ public class Notes {
}
/**
* 便 DataColumns 便 Uri
* 便 DataColumns 便 URI
*/
public static final class TextNote implements DataColumns {
public static final String MODE = DATA1; // 模式
@ -137,11 +134,11 @@ public class Notes {
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/text_note"; // 文本便签的目录 MIME 类型
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/text_note"; // 文本便签的项 MIME 类型
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/text_note"); // 文本便签的 Uri
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/text_note"); // 文本便签的 URI
}
/**
* 便 DataColumns 便 Uri
* 便 DataColumns 便 URI
*/
public static final class CallNote implements DataColumns {
public static final String CALL_DATE = DATA1; // 通话日期
@ -150,32 +147,7 @@ public class Notes {
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/call_note"; // 通话记录便签的目录 MIME 类型
public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/call_note"; // 通话记录便签的项 MIME 类型
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/call_note"); // 通话记录便签的 Uri
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/call_note"); // 通话记录便签的 URI
}
}
/**
*
Notes 便 Uri 便便
AUTHORITYContentProvider
TAG
TYPE_NOTETYPE_FOLDERTYPE_SYSTEM便
ID_ROOT_FOLDERID_TEMPARAY_FOLDERID_CALL_RECORD_FOLDERID_TRASH_FOLDERID
INTENT_EXTRA_*
TYPE_WIDGET_INVALIDTYPE_WIDGET_2XTYPE_WIDGET_4X
DataConstants便 MIME
Uri
CONTENT_NOTE_URI便 Uri
CONTENT_DATA_URI Uri
便
NoteColumns便便IDID便IDID便便IDIDGoogle ID
DataColumnsIDMIME 便ID12345
便
TextNote DataColumns 便 Uri MIME MIME Uri
便
CallNote DataColumns 便 Uri MIME MIME Uri
*/
Loading…
Cancel
Save