1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

Rename AbstractBTDeviceSupport to AbstractSerialDeviceSupport

That way it also fits devices connected via TCP/IP for example.
This commit is contained in:
cpfeiffer 2015-08-17 16:30:12 +02:00
parent 913f37246f
commit 9dd2f039f2
2 changed files with 5 additions and 6 deletions

View File

@ -12,10 +12,9 @@ import nodomain.freeyourgadget.gadgetbridge.deviceevents.GBDeviceEventSendBytes;
import nodomain.freeyourgadget.gadgetbridge.service.AbstractDeviceSupport;
/**
* An abstract base class for all devices connected via Bluetooth
* (not Bluetooth LE).
* An abstract base class for devices speaking a serial protocol, like via
* an rfcomm bluetooth socket or a TCP socket.
*
* Such devices are typically connected with an (rfcomm) socket connection.
* This class uses two helper classes to deal with that:
* - GBDeviceIoThread, which creates and maintains the actual socket connection and implements the transport layer
* - GBDeviceProtocol, which implements the encoding and decoding of messages, i.e. the actual device specific protocol
@ -25,7 +24,7 @@ import nodomain.freeyourgadget.gadgetbridge.service.AbstractDeviceSupport;
* This implementation implements all methods of {@link EventHandler}, calls the {@link GBDeviceProtocol device protocol}
* to create the device specific message for the respective events and sends them to the device via {@link #sendToDevice(byte[])}.
*/
public abstract class AbstractBTDeviceSupport extends AbstractDeviceSupport {
public abstract class AbstractSerialDeviceSupport extends AbstractDeviceSupport {
private static final Logger LOG = LoggerFactory.getLogger(AbstractDeviceSupport.class);

View File

@ -5,11 +5,11 @@ import android.net.Uri;
import java.util.ArrayList;
import nodomain.freeyourgadget.gadgetbridge.model.Alarm;
import nodomain.freeyourgadget.gadgetbridge.service.bt.AbstractBTDeviceSupport;
import nodomain.freeyourgadget.gadgetbridge.service.bt.AbstractSerialDeviceSupport;
import nodomain.freeyourgadget.gadgetbridge.service.bt.GBDeviceIoThread;
import nodomain.freeyourgadget.gadgetbridge.service.bt.GBDeviceProtocol;
public class PebbleSupport extends AbstractBTDeviceSupport {
public class PebbleSupport extends AbstractSerialDeviceSupport {
@Override
public boolean connect() {