// Path: src/andraus/bluetoothhidemu/spoof/Spoof.java
// public static enum SpoofMode { INVALID, HID_GENERIC, HID_PS3KEYPAD, HID_BDREMOTE }


import java.util.Comparator;
import andraus.bluetoothhidemu.spoof.Spoof.SpoofMode;
import android.bluetooth.BluetoothClass;
import android.bluetooth.BluetoothDevice;
package andraus.bluetoothhidemu.view;



public class BluetoothDeviceView {
    
    private BluetoothDevice mBluetoothDevice = null;
    private SpoofMode mSpoofMode;
    
    private String mOverridenName = null; 

    /**
     * Returns a "null" BluetoothDevice. Used to add a dummy item to the arraylist
     * 
     * @param name
     * @return
     */
    public static BluetoothDeviceView getNullBluetoothDeviceView(String name) {
        
        BluetoothDeviceView device = new BluetoothDeviceView(name);
        
        return device;
    }

    /**
     * Private constructor to get a dummy null BluetoothDeviceView
     * @param name
     */
    private BluetoothDeviceView (String name) {
        this(null, SpoofMode.HID_GENERIC);
        mOverridenName = name;
    }
    
    /**
     * Note: bluetoothDevice may be a null value. This bean will handle properly such scenario
     * 
     * @param bluetoothDevice
     * @param spoofMode
     */
    public BluetoothDeviceView(BluetoothDevice bluetoothDevice, SpoofMode spoofMode) {
        super();
        mBluetoothDevice = bluetoothDevice;
        mSpoofMode = spoofMode;
    }

    public BluetoothDevice getBluetoothDevice() {
        return mBluetoothDevice;
    }
    
// Path: src/andraus/bluetoothhidemu/spoof/Spoof.java
// public static enum SpoofMode { INVALID, HID_GENERIC, HID_PS3KEYPAD, HID_BDREMOTE }


// Path: src/andraus/bluetoothhidemu/view/BluetoothDeviceView.java
import java.util.Comparator;
import andraus.bluetoothhidemu.spoof.Spoof.SpoofMode;
import android.bluetooth.BluetoothClass;
import android.bluetooth.BluetoothDevice;

package andraus.bluetoothhidemu.view;



public class BluetoothDeviceView {
    
    private BluetoothDevice mBluetoothDevice = null;
    private SpoofMode mSpoofMode;
    
    private String mOverridenName = null; 

    /**
     * Returns a "null" BluetoothDevice. Used to add a dummy item to the arraylist
     * 
     * @param name
     * @return
     */
    public static BluetoothDeviceView getNullBluetoothDeviceView(String name) {
        
        BluetoothDeviceView device = new BluetoothDeviceView(name);
        
        return device;
    }

    /**
     * Private constructor to get a dummy null BluetoothDeviceView
     * @param name
     */
    private BluetoothDeviceView (String name) {
        this(null, SpoofMode.HID_GENERIC);
        mOverridenName = name;
    }
    
    /**
     * Note: bluetoothDevice may be a null value. This bean will handle properly such scenario
     * 
     * @param bluetoothDevice
     * @param spoofMode
     */
    public BluetoothDeviceView(BluetoothDevice bluetoothDevice, SpoofMode spoofMode) {
        super();
        mBluetoothDevice = bluetoothDevice;
        mSpoofMode = spoofMode;
    }

    public BluetoothDevice getBluetoothDevice() {
        return mBluetoothDevice;
    }
    
    public SpoofMode getSpoofMode() {