/FileExtraction/Java_unseen/mobilesec_secure-element-gpdroid-nfc/src/at/fhooe/usmile/gpjshell/objects/GPAppletData.java
/*******************************************************************************
 * Copyright (c) 2014 Michael Hölzl <mihoelzl@gmail.com>.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Contributors:
 *     Michael Hölzl <mihoelzl@gmail.com> - initial implementation
 ******************************************************************************/
package at.fhooe.usmile.gpjshell.objects;

import java.util.List;

import net.sourceforge.gpj.cardservices.AIDRegistryEntry;

public class GPAppletData {
	private List<AIDRegistryEntry> mRegistry;
	private int mSelectedApplet;

	public GPAppletData(List<AIDRegistryEntry> mRegistry, int mSelectedApplet) {
		this.mRegistry = mRegistry;
		this.mSelectedApplet = mSelectedApplet;
	}
	
	public List<AIDRegistryEntry>  getRegistry() {
		return mRegistry;
	}

	public void setRegistry(List<AIDRegistryEntry>  _registry) {
		mRegistry = _registry;
	}

	public AIDRegistryEntry getSelectedApplet() {
		return mRegistry.get(mSelectedApplet);
	}

	public void setSelectedApplet(int _selectedApplet) {
		mSelectedApplet = _selectedApplet;
	}

	public int getSelectedAppletPosition() {
		return mSelectedApplet;
	}

	public void removeSelectedAppletFromList() {
		mRegistry.remove(mSelectedApplet);
	}

}
