package edu.washington.cs.cellasecure;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.os.Parcel;
import android.os.Parcelable;

public class Drive implements Parcelable {

    public static final String KEY_BUNDLE_DRIVE = "drive";

    private String mName;
    private BluetoothDevice mDevice;

    public Drive(String name, BluetoothDevice bt) {
        mName = name;
        mDevice = bt;
    }

    public Drive(String name, String address) {
        this(name, BluetoothAdapter.getDefaultAdapter().getRemoteDevice(address));
    }

    @Override
    public String toString() {
        return mName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public boolean isLocked() {
        // TODO: Complete me
        return true;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(mName);
    }

}

@@ -613,27 +613,106 @@
 lic 
-String toString() %7B
+int describeContents() %7B return 0; %7D%0A%0A    public boolean isLocked() %7B%0A        // TODO: Complete me
 %0A   
@@ -723,20 +723,19 @@
  return 
-mNam
+tru
 e;%0A    %7D
@@ -765,48 +765,35 @@
 lic 
-int describeContents() %7B%0A       
+String toString() %7B
  return 
 0;%0A 
@@ -792,18 +792,17 @@
 urn 
-0;%0A   
+mName;
  %7D%0A
-%0A
     
@@ -812,82 +812,99 @@
 lic 
-boolean isLocked() %7B%0A        // TODO: Complete me%0A        return true;%0A   
+String getName() %7B return mName; %7D%0A    public BluetoothDevice getDevice() %7B return mDevice;
  %7D%0A%0A

Implement getters for Drive fields and cleanup