aboutsummaryrefslogtreecommitdiffstats
path: root/org_apg/src/org/thialfihar/android/apg/deprecated/BlobContract.java
blob: 0d720dabb623fb1d98bd8a3b649fcd5e4b855ba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package org.thialfihar.android.apg.deprecated;
//package org.thialfihar.android.apg.provider.blob;
//
//import android.net.Uri;
//import android.provider.BaseColumns;
//
//public class BlobContract {
//
//    interface BlobColumns {
//        String DATA = "data";
//    }
//
//    public static final String CONTENT_AUTHORITY = "org.thialfihar.android.apg";
//
//    private static final Uri BASE_CONTENT_URI = Uri.parse("content://" + CONTENT_AUTHORITY);
//
//    public static final String PATH_BLOB = "blob";
//
//    public static class Blobs implements BlobColumns, BaseColumns {
//        public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon().appendPath(PATH_BLOB)
//                .build();
//
//        /** Use if multiple items get returned */
//        public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.apg.blob";
//
//        /** Use if a single item is returned */
//        public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.apg.blob";
//
//        /** Default "ORDER BY" clause. */
//        public static final String DEFAULT_SORT = BaseColumns._ID + " ASC";
//
//        public static Uri buildUri(String id) {
//            return CONTENT_URI.buildUpon().appendPath(id).build();
//        }
//
//        public static String getId(Uri uri) {
//            return uri.getLastPathSegment();
//        }
//    }
//
//    private BlobContract() {
//    }
//}