1 /* ownCloud Android client application
2 * Copyright (C) 2011 Bartek Przybylski
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package eu
.alefzero
.owncloud
.db
;
20 import android
.net
.Uri
;
21 import android
.provider
.BaseColumns
;
23 public class ProviderMeta
{
25 public static final String AUTHORITY
= "org.owncloud";
26 public static final String DB_FILE
= "owncloud.db";
27 public static final String DB_NAME
= "filelist";
28 public static final int DB_VERSION
= 1;
30 private ProviderMeta() { }
32 static public class ProviderTableMeta
implements BaseColumns
{
33 public static final String DB_NAME
= "filelist";
34 public static final Uri CONTENT_URI
=
35 Uri
.parse("content://" + AUTHORITY
+ "/");
36 public static final Uri CONTENT_URI_FILE
=
37 Uri
.parse("content://" + AUTHORITY
+ "/file");
38 public static final Uri CONTENT_URI_DIR
=
39 Uri
.parse("content://" + AUTHORITY
+ "/dir");
41 public static final String CONTENT_TYPE
=
42 "vnd.android.cursor.dir/vnd.owncloud.file";
43 public static final String CONTENT_TYPE_ITEM
=
44 "vnd.android.cursor.item/vnd.owncloud.file";
46 public static final String FILE_PARENT
= "parent";
47 public static final String FILE_NAME
= "filename";
48 public static final String FILE_CREATION
= "created";
49 public static final String FILE_MODIFIED
= "modified";
50 public static final String FILE_CONTENT_LENGTH
= "content_length";
51 public static final String FILE_CONTENT_TYPE
= "content_type";
52 public static final String FILE_STORAGE_PATH
= "media_path";
53 public static final String FILE_PATH
= "path";
54 public static final String FILE_ACCOUNT_OWNER
= "file_owner";
56 public static final String DEFAULT_SORT_ORDER
= FILE_NAME
+ " asc";