/* * Author: * Stjepan Rajko * urbanSTEW * * Copyright 2008,2009 Stjepan Rajko. * * This file is part of the Android version of Rehearsal Assistant. * * Rehearsal Assistant 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. * * Rehearsal Assistant 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 Rehearsal Assistant. * If not, see <http://www.gnu.org/licenses/>. */ package urbanstew.RehearsalAssistant; import android.net.Uri; import android.provider.BaseColumns; public class Rehearsal { public static final String AUTHORITY = "uk.ac.cam.tfmw2.stegdroid.provider.StegDroid"; // This class cannot be instantiated private Rehearsal() {} public static final class AppData implements BaseColumns { // This class cannot be instantiated private AppData() {} public static final String TABLE_NAME = "appdata"; /** * The content:// style URL for this table */ public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/appdata"); /** * The MIME type of {@link #CONTENT_URI} providing a directory of app data entries. */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.urbanstew.rehearsalappdata"; /** * The MIME type of a {@link #CONTENT_URI} sub-directory of a single app data entry. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.urbanstew.rehearsalappdata"; public static final String KEY = "key"; public static final String VALUE = "value"; public static final String DEFAULT_SORT_ORDER = KEY + " ASC"; } /** * Projects table */ public static final class Projects implements BaseColumns { // This class cannot be instantiated private Projects() {} public static final String TABLE_NAME = "projects"; /** * The content:// style URL for this table */ public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/projects"); /** * The MIME type of {@link #CONTENT_URI} providing a directory of app data entries. */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.urbanstew.project"; /** * The MIME type of a {@link #CONTENT_URI} sub-directory of a single app data entry. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.urbanstew.project"; public static final String TITLE = "title"; public static final String IDENTIFIER = "identifier"; public static final String TYPE = "type"; public static final String DEFAULT_SORT_ORDER = _ID + " ASC"; public static final int TYPE_SESSION = 0; public static final int TYPE_SIMPLE = 1; } /** * Sessions table */ public static final class Sessions implements BaseColumns { // This class cannot be instantiated private Sessions() {} public static final String TABLE_NAME = "sessions"; /** * The content:// style URL for this table */ public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/sessions"); /** * The MIME type of {@link #CONTENT_URI} providing a directory of runs. */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.urbanstew.session"; /** * The MIME type of a {@link #CONTENT_URI} sub-directory of a single run. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.urbanstew.session"; /** * The default sort order for this table */ public static final String DEFAULT_SORT_ORDER = "project_id DESC"; /** * The title of the run * <P>Type: TEXT</P> */ public static final String TITLE = "title"; public static final String PROJECT_ID = "project_id"; public static final String IDENTIFIER = "identifier"; public static final String START_TIME = "start_time"; public static final String END_TIME = "end_time"; } public static final class Annotations implements BaseColumns { // This class cannot be instantiated private Annotations() {} public static final String TABLE_NAME = "annotations"; /** * The content:// style URL for this table */ public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/annotations"); /** * The MIME type of {@link #CONTENT_URI} providing a directory of runs. */ public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.urbanstew.annotation"; /** * The MIME type of a {@link #CONTENT_URI} sub-directory of a single run. */ public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.urbanstew.annotation"; /** * The default sort order for this table */ public static final String DEFAULT_SORT_ORDER = "start_time ASC"; /** * The run_id of the annotation * <P>Type: INTEGER</P> */ public static final String SESSION_ID = "session_id"; public static final String START_TIME = "start_time"; public static final String END_TIME = "end_time"; public static final String FILE_NAME = "file_name"; public static final String LABEL = "label"; public static final String VIEWED = "viewed"; } }