|
|
@ -42,11 +42,16 @@ public class Notes {
|
|
|
|
public static final String INTENT_EXTRA_FOLDER_ID = "net.micode.notes.folder_id";
|
|
|
|
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_CALL_DATE = "net.micode.notes.call_date";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final String content = "content://";
|
|
|
|
|
|
|
|
|
|
|
|
public static final int TYPE_WIDGET_INVALIDE = -1;
|
|
|
|
public static final int TYPE_WIDGET_INVALIDE = -1;
|
|
|
|
public static final int TYPE_WIDGET_2X = 0;
|
|
|
|
public static final int TYPE_WIDGET_2X = 0;
|
|
|
|
public static final int TYPE_WIDGET_4X = 1;
|
|
|
|
public static final int TYPE_WIDGET_4X = 1;
|
|
|
|
|
|
|
|
|
|
|
|
public static class DataConstants {
|
|
|
|
public static class DataConstants {
|
|
|
|
|
|
|
|
private DataConstants(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
public static final String NOTE = TextNote.CONTENT_ITEM_TYPE;
|
|
|
|
public static final String NOTE = TextNote.CONTENT_ITEM_TYPE;
|
|
|
|
public static final String CALL_NOTE = CallNote.CONTENT_ITEM_TYPE;
|
|
|
|
public static final String CALL_NOTE = CallNote.CONTENT_ITEM_TYPE;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -54,12 +59,12 @@ public class Notes {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Uri to query all notes and folders
|
|
|
|
* Uri to query all notes and folders
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static final Uri CONTENT_NOTE_URI = Uri.parse("content://" + AUTHORITY + "/note");
|
|
|
|
public static final Uri CONTENT_NOTE_URI = Uri.parse(content + AUTHORITY + "/note");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Uri to query data
|
|
|
|
* Uri to query data
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static final Uri CONTENT_DATA_URI = Uri.parse("content://" + AUTHORITY + "/data");
|
|
|
|
public static final Uri CONTENT_DATA_URI = Uri.parse(content + AUTHORITY + "/data");
|
|
|
|
|
|
|
|
|
|
|
|
public interface NoteColumns {
|
|
|
|
public interface NoteColumns {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -246,6 +251,10 @@ public class Notes {
|
|
|
|
* Mode to indicate the text in check list mode or not
|
|
|
|
* Mode to indicate the text in check list mode or not
|
|
|
|
* <P> Type: Integer 1:check list mode 0: normal mode </P>
|
|
|
|
* <P> Type: Integer 1:check list mode 0: normal mode </P>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private TextNote(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
public static final String MODE = DATA1;
|
|
|
|
public static final String MODE = DATA1;
|
|
|
|
|
|
|
|
|
|
|
|
public static final int MODE_CHECK_LIST = 1;
|
|
|
|
public static final int MODE_CHECK_LIST = 1;
|
|
|
@ -254,7 +263,7 @@ public class Notes {
|
|
|
|
|
|
|
|
|
|
|
|
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");
|
|
|
|
public static final Uri CONTENT_URI = Uri.parse(content + AUTHORITY + "/text_note");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static final class CallNote implements DataColumns {
|
|
|
|
public static final class CallNote implements DataColumns {
|
|
|
@ -262,6 +271,9 @@ public class Notes {
|
|
|
|
* Call date for this record
|
|
|
|
* Call date for this record
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
* <P> Type: INTEGER (long) </P>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
private CallNote(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
public static final String CALL_DATE = DATA1;
|
|
|
|
public static final String CALL_DATE = DATA1;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -274,6 +286,6 @@ public class Notes {
|
|
|
|
|
|
|
|
|
|
|
|
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");
|
|
|
|
public static final Uri CONTENT_URI = Uri.parse(content + AUTHORITY + "/call_note");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|