// Path: FrogCare/src/com/bingoogol/frogcare/db/DBOpenHelper.java
// public class DBOpenHelper extends SQLiteOpenHelper {
// 
// 	public DBOpenHelper(Context context) {
// 		super(context, "frogcare.db", null, 1);
// 	}
// 
// 	/**
// 	 * 数据库第一次创建的时候 调用的方法.
// 	 */
// 	@Override
// 	public void onCreate(SQLiteDatabase db) {
// 		// 创建程序锁表
// 		db.execSQL("create table applock (_id integer primary key autoincrement , packname varchar(20)) ");
// 		// 创建黑名单表
// 		db.execSQL("create table blacklist (_id integer primary key autoincrement , number varchar(20), mode integer) ");
// 	}
// 
// 	@Override
// 	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
// 
// 	}
// }


import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import com.bingoogol.frogcare.db.DBOpenHelper;
package com.bingoogol.frogcare.db.dao;




/**
 * 实现数据库增删改查
 * 
 * @author Administrator
 * 
 */
public class AppLockDao {
	private DBOpenHelper helper;
	private Context context;
	public static Uri uri = Uri.parse("content://com.bingoogol.frogcare");

	/**
	 * 构造方法初始化helper对象
	 * 
	 * @param context
	 */
	public AppLockDao(Context context) {
		helper = new DBOpenHelper(context);
		this.context = context;
	}

	/**
	 * 查找
	 * 
	 * @param packname
	 * @return
	 */
	public boolean find(String packname) {
		boolean result = false;
// Path: FrogCare/src/com/bingoogol/frogcare/db/DBOpenHelper.java
// public class DBOpenHelper extends SQLiteOpenHelper {
// 
// 	public DBOpenHelper(Context context) {
// 		super(context, "frogcare.db", null, 1);
// 	}
// 
// 	/**
// 	 * 数据库第一次创建的时候 调用的方法.
// 	 */
// 	@Override
// 	public void onCreate(SQLiteDatabase db) {
// 		// 创建程序锁表
// 		db.execSQL("create table applock (_id integer primary key autoincrement , packname varchar(20)) ");
// 		// 创建黑名单表
// 		db.execSQL("create table blacklist (_id integer primary key autoincrement , number varchar(20), mode integer) ");
// 	}
// 
// 	@Override
// 	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
// 
// 	}
// }


// Path: FrogCare/src/com/bingoogol/frogcare/db/dao/AppLockDao.java
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import com.bingoogol.frogcare.db.DBOpenHelper;

package com.bingoogol.frogcare.db.dao;




/**
 * 实现数据库增删改查
 * 
 * @author Administrator
 * 
 */
public class AppLockDao {
	private DBOpenHelper helper;
	private Context context;
	public static Uri uri = Uri.parse("content://com.bingoogol.frogcare");

	/**
	 * 构造方法初始化helper对象
	 * 
	 * @param context
	 */
	public AppLockDao(Context context) {
		helper = new DBOpenHelper(context);
		this.context = context;
	}

	/**
	 * 查找
	 * 
	 * @param packname
	 * @return
	 */
	public boolean find(String packname) {
		boolean result = false;
		SQLiteDatabase db = helper.getReadableDatabase();