2015-04-13 01:01:52 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
|
|
|
public abstract class GBDeviceIoThread extends Thread {
|
|
|
|
protected final GBDevice gbDevice;
|
2015-04-13 11:22:03 +02:00
|
|
|
private final Context context;
|
2015-04-13 01:01:52 +02:00
|
|
|
|
|
|
|
public GBDeviceIoThread(GBDevice gbDevice, Context context) {
|
2015-04-13 11:22:03 +02:00
|
|
|
this.gbDevice = gbDevice;
|
2015-04-13 01:01:52 +02:00
|
|
|
this.context = context;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Context getContext() {
|
2015-04-13 11:22:03 +02:00
|
|
|
return context;
|
|
|
|
}
|
|
|
|
|
2015-04-13 01:01:52 +02:00
|
|
|
public GBDevice getDevice() {
|
2015-04-13 11:22:03 +02:00
|
|
|
return gbDevice;
|
|
|
|
}
|
|
|
|
|
2015-04-13 01:01:52 +02:00
|
|
|
protected boolean connect(String btDeviceAddress) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void run() {
|
|
|
|
}
|
|
|
|
|
|
|
|
synchronized public void write(byte[] bytes) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public void quit() {
|
|
|
|
}
|
|
|
|
}
|