1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-14 09:00:04 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBDeviceIoThread.java
cpfeiffer 09bb5d4a3e Refactoring: extracted inner GBDeviceIOThread classes to own files
To enable this, extracted some shared functionality into new GB helper
class.
2015-04-13 01:02:26 +02:00

34 lines
671 B
Java

package nodomain.freeyourgadget.gadgetbridge;
import android.content.Context;
public abstract class GBDeviceIoThread extends Thread {
protected final GBDevice gbDevice;
private final Context context;
public GBDeviceIoThread(GBDevice gbDevice, Context context) {
this.gbDevice = gbDevice;
this.context = context;
}
public Context getContext() {
return context;
}
public GBDevice getDevice() {
return gbDevice;
}
protected boolean connect(String btDeviceAddress) {
return false;
}
public void run() {
}
synchronized public void write(byte[] bytes) {
}
public void quit() {
}
}