Android Open Source - checkit Checklist Metadata






From Project

Back to project page checkit.

License

The source code is released under:

GNU General Public License

If you think the Android project checkit listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * Metadata for database./* www.  j  a  v a2 s . co  m*/
 *
 * @author  Yujian Zhang <yujian{dot}zhang[at]gmail(dot)com>
 *
 * License: 
 *   GNU General Public License v2
 *   http://www.gnu.org/licenses/gpl-2.0.html
 * Copyright (C) 2012 Yujian Zhang
 */

package net.whily.android.checkit;

import android.net.Uri;
import android.provider.BaseColumns;

public final class ChecklistMetadata {
  public static final String AUTHORITY = "net.whily.provider.Checklist";
  public static final String DATABASE_NAME = "checklists.db";
  public static final int DATABASE_VERSION = 1;

  // This class cannot be instantiated
  private ChecklistMetadata() {}

  public static final class Checklists implements BaseColumns {

    // This class cannot be instantiated
    private Checklists() {}

    public static final String TABLE_NAME = "checklists";

    private static final String SCHEME = "content://";
    private static final String PATH_CHECKLISTS = "/checklists";
    private static final String PATH_CHECKLIST_ID = "/checklists/";
    public static final int CHECKLIST_ID_PATH_POSITION = 1;
    public static final Uri CONTENT_URI 
      =  Uri.parse(SCHEME + AUTHORITY + PATH_CHECKLISTS);
    public static final Uri CONTENT_ID_URI_BASE
      = Uri.parse(SCHEME + AUTHORITY + PATH_CHECKLIST_ID);
    public static final Uri CONTENT_ID_URI_PATTERN
      = Uri.parse(SCHEME + AUTHORITY + PATH_CHECKLIST_ID + "/#");
    public static final String CONTENT_TYPE 
      = "vnd.android.cursor.dir/vnd.net.whily.checklist";
    public static final String CONTENT_ITEM_TYPE 
      = "vnd.android.cursor.item/vnd.net.whily.checklist";

    public static final String DEFAULT_SORT_ORDER = "modified DESC";

    // String type.
    public static final String COLUMN_TITLE = "title";
    // String type.
    public static final String COLUMN_CONTENT = "content";
    // Integer from System.curentTimeMillis()
    public static final String COLUMN_MODIFIED = "modified";
  }
}




Java Source Code List

net.whily.android.checkit.AboutActivity.java
net.whily.android.checkit.Alert.java
net.whily.android.checkit.CheckActivity.java
net.whily.android.checkit.CheckedItem.java
net.whily.android.checkit.ChecklistMetadata.java
net.whily.android.checkit.ChecklistProvider.java
net.whily.android.checkit.CustomDialogFragment.java
net.whily.android.checkit.ExternalStorage.java
net.whily.android.checkit.HomeActivity.java
net.whily.android.checkit.OnDialogDoneListener.java
net.whily.android.checkit.PromptDialogFragment.java
net.whily.android.checkit.SelectionDialogFragment.java
net.whily.android.checkit.SettingsActivity.java
net.whily.android.checkit.Util.java