// Path: src/com/concentricsky/android/khanacademy/data/KADataService.java
// public static class KADataBinder extends Binder {
// 	private KADataService dataService;
// 	public KADataBinder(KADataService dataService) {
// 		setDataService(dataService);
// 	}
//     public KADataService getService() {
//         return dataService;
//     }
//     public void setDataService(KADataService dataService) {
// 		this.dataService = dataService;
//     }
// }
// 
// Path: src/com/concentricsky/android/khanacademy/data/KADataService.java
// public interface Provider {
// 	public KADataService getDataService() throws ServiceUnavailableException;
// 	public boolean requestDataService(ObjectCallback<KADataService> callback);
// 	public boolean cancelDataServiceRequest(ObjectCallback<KADataService> callback);
// }
// 
// Path: src/com/concentricsky/android/khanacademy/data/KADataService.java
// public static class ServiceUnavailableException extends Exception {
// 	private static final long serialVersionUID = 581386365380491650L;
// 	public final boolean expected;
// 	public ServiceUnavailableException(boolean expected) {
// 		super();
// 		this.expected = expected;
// 	}
// }
// 
// Path: src/com/concentricsky/android/khanacademy/util/ObjectCallback.java
// public interface ObjectCallback<T> {
// 	public void call(T obj);
// }


import com.concentricsky.android.khanacademy.util.ObjectCallback;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import com.concentricsky.android.khanacademy.data.KADataService.KADataBinder;
import com.concentricsky.android.khanacademy.data.KADataService.Provider;
import com.concentricsky.android.khanacademy.data.KADataService.ServiceUnavailableException;
/*
 	Viewer for Khan Academy
    Copyright (C) 2012 Concentric Sky, Inc.

    This program 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.

    This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.concentricsky.android.khanacademy.data;




public class KADataServiceProviderImpl implements Provider {

    private Activity activity;
    private KADataService dataService;
// Path: src/com/concentricsky/android/khanacademy/data/KADataService.java
// public static class KADataBinder extends Binder {
// 	private KADataService dataService;
// 	public KADataBinder(KADataService dataService) {
// 		setDataService(dataService);
// 	}
//     public KADataService getService() {
//         return dataService;
//     }
//     public void setDataService(KADataService dataService) {
// 		this.dataService = dataService;
//     }
// }
// 
// Path: src/com/concentricsky/android/khanacademy/data/KADataService.java
// public interface Provider {
// 	public KADataService getDataService() throws ServiceUnavailableException;
// 	public boolean requestDataService(ObjectCallback<KADataService> callback);
// 	public boolean cancelDataServiceRequest(ObjectCallback<KADataService> callback);
// }
// 
// Path: src/com/concentricsky/android/khanacademy/data/KADataService.java
// public static class ServiceUnavailableException extends Exception {
// 	private static final long serialVersionUID = 581386365380491650L;
// 	public final boolean expected;
// 	public ServiceUnavailableException(boolean expected) {
// 		super();
// 		this.expected = expected;
// 	}
// }
// 
// Path: src/com/concentricsky/android/khanacademy/util/ObjectCallback.java
// public interface ObjectCallback<T> {
// 	public void call(T obj);
// }


// Path: src/com/concentricsky/android/khanacademy/data/KADataServiceProviderImpl.java
import com.concentricsky.android.khanacademy.util.ObjectCallback;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import com.concentricsky.android.khanacademy.data.KADataService.KADataBinder;
import com.concentricsky.android.khanacademy.data.KADataService.Provider;
import com.concentricsky.android.khanacademy.data.KADataService.ServiceUnavailableException;

/*
 	Viewer for Khan Academy
    Copyright (C) 2012 Concentric Sky, Inc.

    This program 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.

    This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.concentricsky.android.khanacademy.data;




public class KADataServiceProviderImpl implements Provider {

    private Activity activity;
    private KADataService dataService;
    private List<ObjectCallback<KADataService>> dataServiceCallbacks = new ArrayList<ObjectCallback<KADataService>>();