summaryrefslogtreecommitdiffstats
path: root/photoviewer/src/com/android/ex/photo/provider/PhotoContract.java
diff options
context:
space:
mode:
Diffstat (limited to 'photoviewer/src/com/android/ex/photo/provider/PhotoContract.java')
-rw-r--r--photoviewer/src/com/android/ex/photo/provider/PhotoContract.java79
1 files changed, 0 insertions, 79 deletions
diff --git a/photoviewer/src/com/android/ex/photo/provider/PhotoContract.java b/photoviewer/src/com/android/ex/photo/provider/PhotoContract.java
deleted file mode 100644
index 8483620..0000000
--- a/photoviewer/src/com/android/ex/photo/provider/PhotoContract.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright (C) 2011 Google Inc.
- * Licensed to The Android Open Source Project.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.ex.photo.provider;
-
-import android.net.Uri;
-import android.provider.OpenableColumns;
-
-public final class PhotoContract {
- /** Columns for the view */
- public static interface PhotoViewColumns {
- /**
- * This column is a {@link Uri} that can be queried
- * for this individual image (resulting cursor has one single row for this image).
- */
- public static final String URI = "uri";
- /**
- * This column is a {@link String} that can be queried for this
- * individual image to return a displayable name.
- */
- public static final String NAME = OpenableColumns.DISPLAY_NAME;
- /**
- * This column is a {@link Uri} that points to the downloaded local file.
- * Can be null.
- */
- public static final String CONTENT_URI = "contentUri";
- /**
- * This column is a {@link Uri} that points to a thumbnail of the image
- * that ideally is a local file.
- * Can be null.
- */
- public static final String THUMBNAIL_URI = "thumbnailUri";
- /**
- * This string column is the MIME type.
- */
- public static final String CONTENT_TYPE = "contentType";
- /**
- * This boolean column indicates that a loading indicator should display permenantly
- * if no image urls are provided.
- */
- public static final String LOADING_INDICATOR = "loadingIndicator";
-
- }
-
- public static interface PhotoQuery {
- /** Projection of the returned cursor */
- public final static String[] PROJECTION = {
- PhotoViewColumns.URI,
- PhotoViewColumns.NAME,
- PhotoViewColumns.CONTENT_URI,
- PhotoViewColumns.THUMBNAIL_URI,
- PhotoViewColumns.CONTENT_TYPE,
- };
- }
-
- public static final class ContentTypeParameters {
- /**
- * Parameter used to specify which type of content to return.
- * Allows multiple types to be specified.
- */
- public static final String CONTENT_TYPE = "contentType";
-
- private ContentTypeParameters() {}
- }
-}