• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2007 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.provider;
18 
19 import android.net.Uri;
20 import android.provider.BaseColumns;
21 
22 /**
23  * Convenience definitions for NotePadProvider
24  */
25 public final class NotePad {
26     /**
27      * Notes table
28      */
29     public static final class Notes implements BaseColumns {
30         /**
31          * The content:// style URL for this table
32          */
33         public static final Uri CONTENT_URI
34                 = Uri.parse("content://com.google.provider.NotePad/notes");
35 
36         /**
37          * The default sort order for this table
38          */
39         public static final String DEFAULT_SORT_ORDER = "modified DESC";
40 
41         /**
42          * The title of the note
43          * <P>Type: TEXT</P>
44          */
45         public static final String TITLE = "title";
46 
47         /**
48          * The note itself
49          * <P>Type: TEXT</P>
50          */
51         public static final String NOTE = "note";
52 
53         /**
54          * The timestamp for when the note was created
55          * <P>Type: INTEGER (long)</P>
56          */
57         public static final String CREATED_DATE = "created";
58 
59         /**
60          * The timestamp for when the note was last modified
61          * <P>Type: INTEGER (long)</P>
62          */
63         public static final String MODIFIED_DATE = "modified";
64     }
65 }
66