// Path: src/de/hdodenhof/holoreader/provider/SQLiteHelper.java
// public class ArticleDAO {
// 
//     public static final String TABLE = "articles";
//     public static final String _ID = "_id";
//     public static final String FEEDID = "feedid";
//     public static final String FEEDNAME = "feedname";
//     public static final String GUID = "guid";
//     public static final String PUBDATE = "pubdate";
//     public static final String TITLE = "title";
//     public static final String SUMMARY = "summary";
//     public static final String CONTENT = "content";
//     public static final String IMAGE = "image";
//     public static final String LINK = "link";
//     public static final String READ = "read";
//     public static final String ISDELETED = "isdeleted";
// 
//     public static final String VIEW = "articles_view";
// 
//     private static final String IDX_FEEDID = "idx_article_feedid";
// 
// }
// 
// Path: src/de/hdodenhof/holoreader/provider/SQLiteHelper.java
// public class FeedDAO {
// 
//     public static final String TABLE = "feeds";
//     public static final String _ID = "_id";
//     public static final String NAME = "name";
//     public static final String URL = "url";
//     public static final String UPDATED = "updated";
//     public static final String UNREAD = "unread";
// 
//     public static final String VIEW = "feeds_view";
// 
// }


import android.content.ContentProvider;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.text.TextUtils;
import de.hdodenhof.holoreader.provider.SQLiteHelper.ArticleDAO;
import de.hdodenhof.holoreader.provider.SQLiteHelper.FeedDAO;
package de.hdodenhof.holoreader.provider;



public class RSSContentProvider extends ContentProvider {

    private SQLiteHelper mSQLiteHelper;

    private static final String AUTHORITY = "de.hdodenhof.holoreader.RSSProvider";

    public static final int FEEDS = 110;
    public static final int FEED_ID = 120;
    public static final int ARTICLES = 210;
    public static final int ARTICLE_ID = 220;

    private static final String BASE_PATH_FEEDS = "feeds";
    private static final String BASE_PATH_ARTICLES = "articles";

    public static final Uri URI_FEEDS = Uri.parse("content://" + AUTHORITY + "/" + BASE_PATH_FEEDS);
    public static final Uri URI_ARTICLES = Uri.parse("content://" + AUTHORITY + "/" + BASE_PATH_ARTICLES);

    public static final String TYPE_FEEDS = ContentResolver.CURSOR_DIR_BASE_TYPE + "/feeds";
    public static final String ITEM_TYPE_FEEDS = ContentResolver.CURSOR_ITEM_BASE_TYPE + "/feed";
    public static final String TYPE_ARTICLES = ContentResolver.CURSOR_DIR_BASE_TYPE + "/articles";
    public static final String ITEM_TYPE_ARTICLES = ContentResolver.CURSOR_ITEM_BASE_TYPE + "/article";

    private static final UriMatcher sURIMatcher = new UriMatcher(UriMatcher.NO_MATCH);

    static {
        sURIMatcher.addURI(AUTHORITY, BASE_PATH_FEEDS, FEEDS);
        sURIMatcher.addURI(AUTHORITY, BASE_PATH_FEEDS + "/#", FEED_ID);
        sURIMatcher.addURI(AUTHORITY, BASE_PATH_ARTICLES, ARTICLES);
        sURIMatcher.addURI(AUTHORITY, BASE_PATH_ARTICLES + "/#", ARTICLE_ID);
    }

    @Override
    public boolean onCreate() {
        mSQLiteHelper = new SQLiteHelper(getContext());
// Path: src/de/hdodenhof/holoreader/provider/SQLiteHelper.java
// public class ArticleDAO {
// 
//     public static final String TABLE = "articles";
//     public static final String _ID = "_id";
//     public static final String FEEDID = "feedid";
//     public static final String FEEDNAME = "feedname";
//     public static final String GUID = "guid";
//     public static final String PUBDATE = "pubdate";
//     public static final String TITLE = "title";
//     public static final String SUMMARY = "summary";
//     public static final String CONTENT = "content";
//     public static final String IMAGE = "image";
//     public static final String LINK = "link";
//     public static final String READ = "read";
//     public static final String ISDELETED = "isdeleted";
// 
//     public static final String VIEW = "articles_view";
// 
//     private static final String IDX_FEEDID = "idx_article_feedid";
// 
// }
// 
// Path: src/de/hdodenhof/holoreader/provider/SQLiteHelper.java
// public class FeedDAO {
// 
//     public static final String TABLE = "feeds";
//     public static final String _ID = "_id";
//     public static final String NAME = "name";
//     public static final String URL = "url";
//     public static final String UPDATED = "updated";
//     public static final String UNREAD = "unread";
// 
//     public static final String VIEW = "feeds_view";
// 
// }


// Path: src/de/hdodenhof/holoreader/provider/RSSContentProvider.java
import android.content.ContentProvider;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.text.TextUtils;
import de.hdodenhof.holoreader.provider.SQLiteHelper.ArticleDAO;
import de.hdodenhof.holoreader.provider.SQLiteHelper.FeedDAO;

package de.hdodenhof.holoreader.provider;



public class RSSContentProvider extends ContentProvider {

    private SQLiteHelper mSQLiteHelper;

    private static final String AUTHORITY = "de.hdodenhof.holoreader.RSSProvider";

    public static final int FEEDS = 110;
    public static final int FEED_ID = 120;
    public static final int ARTICLES = 210;
    public static final int ARTICLE_ID = 220;

    private static final String BASE_PATH_FEEDS = "feeds";
    private static final String BASE_PATH_ARTICLES = "articles";

    public static final Uri URI_FEEDS = Uri.parse("content://" + AUTHORITY + "/" + BASE_PATH_FEEDS);
    public static final Uri URI_ARTICLES = Uri.parse("content://" + AUTHORITY + "/" + BASE_PATH_ARTICLES);

    public static final String TYPE_FEEDS = ContentResolver.CURSOR_DIR_BASE_TYPE + "/feeds";
    public static final String ITEM_TYPE_FEEDS = ContentResolver.CURSOR_ITEM_BASE_TYPE + "/feed";
    public static final String TYPE_ARTICLES = ContentResolver.CURSOR_DIR_BASE_TYPE + "/articles";
    public static final String ITEM_TYPE_ARTICLES = ContentResolver.CURSOR_ITEM_BASE_TYPE + "/article";

    private static final UriMatcher sURIMatcher = new UriMatcher(UriMatcher.NO_MATCH);

    static {
        sURIMatcher.addURI(AUTHORITY, BASE_PATH_FEEDS, FEEDS);
        sURIMatcher.addURI(AUTHORITY, BASE_PATH_FEEDS + "/#", FEED_ID);
        sURIMatcher.addURI(AUTHORITY, BASE_PATH_ARTICLES, ARTICLES);
        sURIMatcher.addURI(AUTHORITY, BASE_PATH_ARTICLES + "/#", ARTICLE_ID);
    }

    @Override
    public boolean onCreate() {
        mSQLiteHelper = new SQLiteHelper(getContext());
        return true;