Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/EventHandler.java
cpfeiffer 9e4e50be47 Initial work on synchronizing activity data with feedback.
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)
2015-06-06 00:40:16 +02:00

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();
}