mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-11 15:48:31 +02:00
9e4e50be47
A device now has a busy flag (set during synchronization). While busy, no other communication with the device shall occur (TODO) Refactors the non-bluetooth actions a bit #45 Next step: make use of the busy state in ControlCenter (show a busy cursor) and in BluetoothCommunicationService (to not call other operations while busy)
68 lines
1.4 KiB
Java
68 lines
1.4 KiB
Java
package nodomain.freeyourgadget.gadgetbridge.protocol;
|
|
|
|
import java.util.UUID;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.GBCommand;
|
|
|
|
public abstract class GBDeviceProtocol {
|
|
|
|
public byte[] encodeSMS(String from, String body) {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeEmail(String from, String subject, String body) {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeGenericNotification(String title, String details) {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeSetTime(long ts) {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeSetCallState(String number, String name, GBCommand command) {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeSetMusicInfo(String artist, String album, String track) {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeFirmwareVersionReq() {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeBatteryInfoReq() {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeAppInfoReq() {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeAppDelete(UUID uuid) {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeAppStart(UUID uuid) {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodePhoneVersion(byte os) {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeSynchronizeActivityData() {
|
|
return null;
|
|
}
|
|
|
|
public byte[] encodeReboot() {
|
|
return null;
|
|
}
|
|
|
|
public GBDeviceCommand decodeResponse(byte[] responseData) {
|
|
return null;
|
|
}
|
|
} |