mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 10:31:03 +01: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)
35 lines
697 B
Java
35 lines
697 B
Java
package nodomain.freeyourgadget.gadgetbridge;
|
|
|
|
import java.util.UUID;
|
|
|
|
public interface EventHandler {
|
|
void onSMS(String from, String body);
|
|
|
|
void onEmail(String from, String subject, String body);
|
|
|
|
void onGenericNotification(String title, String details);
|
|
|
|
void onSetTime(long ts);
|
|
|
|
void onSetCallState(String number, String name, GBCommand command);
|
|
|
|
void onSetMusicInfo(String artist, String album, String track);
|
|
|
|
void onFirmwareVersionReq();
|
|
|
|
void onBatteryInfoReq();
|
|
|
|
void onAppInfoReq();
|
|
|
|
void onAppStart(UUID uuid);
|
|
|
|
void onAppDelete(UUID uuid);
|
|
|
|
void onPhoneVersion(byte os);
|
|
|
|
void onSynchronizeActivityData();
|
|
|
|
void onReboot();
|
|
|
|
}
|