X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/9ca5cc327de580dcf474fa35de59e2e8c45d29f8..020d2885ce5f923870ff3aed02db98d6e9eb2a48:/src/eu/alefzero/owncloud/db/ProviderMeta.java?ds=sidebyside
diff --git a/src/eu/alefzero/owncloud/db/ProviderMeta.java b/src/eu/alefzero/owncloud/db/ProviderMeta.java
index 762562d8..b134ae6b 100644
--- a/src/eu/alefzero/owncloud/db/ProviderMeta.java
+++ b/src/eu/alefzero/owncloud/db/ProviderMeta.java
@@ -1,59 +1,64 @@
-/* ownCloud Android client application
- * Copyright (C) 2011 Bartek Przybylski
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-package eu.alefzero.owncloud.db;
-
-import android.net.Uri;
-import android.provider.BaseColumns;
-
-public class ProviderMeta {
-
- public static final String AUTHORITY_FILES = "org.owncloud.files";
- public static final String DB_FILE = "owncloud.db";
- public static final String DB_NAME = "filelist";
- public static final int DB_VERSION = 1;
-
- private ProviderMeta() { }
-
- static public class ProviderTableMeta implements BaseColumns {
- public static final String DB_NAME = "filelist";
- public static final Uri CONTENT_URI =
- Uri.parse("content://" + AUTHORITY_FILES + "/");
- public static final Uri CONTENT_URI_FILE =
- Uri.parse("content://" + AUTHORITY_FILES + "/file");
- public static final Uri CONTENT_URI_DIR =
- Uri.parse("content://" + AUTHORITY_FILES + "/dir");
-
- public static final String CONTENT_TYPE =
- "vnd.android.cursor.dir/vnd.owncloud.file";
- public static final String CONTENT_TYPE_ITEM =
- "vnd.android.cursor.item/vnd.owncloud.file";
-
- public static final String FILE_PARENT = "parent";
- public static final String FILE_NAME = "filename";
- public static final String FILE_CREATION = "created";
- public static final String FILE_MODIFIED = "modified";
- public static final String FILE_CONTENT_LENGTH = "content_length";
- public static final String FILE_CONTENT_TYPE = "content_type";
- public static final String FILE_STORAGE_PATH = "media_path";
- public static final String FILE_PATH = "path";
- public static final String FILE_ACCOUNT_OWNER = "file_owner";
-
- public static final String DEFAULT_SORT_ORDER = FILE_NAME + " asc";
-
- }
-}
+/* ownCloud Android client application
+ * Copyright (C) 2011 Bartek Przybylski
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+package eu.alefzero.owncloud.db;
+
+import android.net.Uri;
+import android.provider.BaseColumns;
+
+/**
+ * Meta-Class that holds various static field information
+ * @author Bartek Przybylski
+ *
+ */
+public class ProviderMeta {
+
+ public static final String AUTHORITY_FILES = "org.owncloud";
+ public static final String DB_FILE = "owncloud.db";
+ public static final String DB_NAME = "filelist";
+ public static final int DB_VERSION = 1;
+
+ private ProviderMeta() { }
+
+ static public class ProviderTableMeta implements BaseColumns {
+ public static final String DB_NAME = "filelist";
+ public static final Uri CONTENT_URI =
+ Uri.parse("content://" + AUTHORITY_FILES + "/");
+ public static final Uri CONTENT_URI_FILE =
+ Uri.parse("content://" + AUTHORITY_FILES + "/file");
+ public static final Uri CONTENT_URI_DIR =
+ Uri.parse("content://" + AUTHORITY_FILES + "/dir");
+
+ public static final String CONTENT_TYPE =
+ "vnd.android.cursor.dir/vnd.owncloud.file";
+ public static final String CONTENT_TYPE_ITEM =
+ "vnd.android.cursor.item/vnd.owncloud.file";
+
+ public static final String FILE_PARENT = "parent";
+ public static final String FILE_NAME = "filename";
+ public static final String FILE_CREATION = "created";
+ public static final String FILE_MODIFIED = "modified";
+ public static final String FILE_CONTENT_LENGTH = "content_length";
+ public static final String FILE_CONTENT_TYPE = "content_type";
+ public static final String FILE_STORAGE_PATH = "media_path";
+ public static final String FILE_PATH = "path";
+ public static final String FILE_ACCOUNT_OWNER = "file_owner";
+
+ public static final String DEFAULT_SORT_ORDER = FILE_NAME + " collate nocase asc";
+
+ }
+}