2015-04-14 01:24:03 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge;
|
|
|
|
|
2015-06-06 23:24:00 +02:00
|
|
|
import android.net.Uri;
|
|
|
|
|
2015-05-18 20:56:19 +02:00
|
|
|
import java.util.UUID;
|
|
|
|
|
2015-04-14 01:24:03 +02:00
|
|
|
public interface EventHandler {
|
2015-05-12 20:09:35 +02:00
|
|
|
void onSMS(String from, String body);
|
2015-04-14 01:24:03 +02:00
|
|
|
|
2015-05-12 20:09:35 +02:00
|
|
|
void onEmail(String from, String subject, String body);
|
2015-04-14 01:24:03 +02:00
|
|
|
|
2015-05-13 21:55:22 +02:00
|
|
|
void onGenericNotification(String title, String details);
|
|
|
|
|
2015-05-12 20:09:35 +02:00
|
|
|
void onSetTime(long ts);
|
2015-04-14 01:24:03 +02:00
|
|
|
|
2015-05-12 20:09:35 +02:00
|
|
|
void onSetCallState(String number, String name, GBCommand command);
|
2015-04-14 01:24:03 +02:00
|
|
|
|
2015-05-12 20:09:35 +02:00
|
|
|
void onSetMusicInfo(String artist, String album, String track);
|
2015-04-14 01:24:03 +02:00
|
|
|
|
2015-05-12 20:09:35 +02:00
|
|
|
void onFirmwareVersionReq();
|
2015-04-14 01:24:03 +02:00
|
|
|
|
2015-05-12 20:09:35 +02:00
|
|
|
void onBatteryInfoReq();
|
2015-04-19 22:31:09 +02:00
|
|
|
|
2015-06-06 23:24:00 +02:00
|
|
|
void onInstallApp(Uri uri);
|
|
|
|
|
2015-05-12 20:09:35 +02:00
|
|
|
void onAppInfoReq();
|
2015-04-14 01:24:03 +02:00
|
|
|
|
2015-05-18 22:20:01 +02:00
|
|
|
void onAppStart(UUID uuid);
|
|
|
|
|
2015-05-18 20:56:19 +02:00
|
|
|
void onAppDelete(UUID uuid);
|
2015-04-14 01:24:03 +02:00
|
|
|
|
2015-05-12 20:09:35 +02:00
|
|
|
void onPhoneVersion(byte os);
|
2015-05-17 21:58:08 +02:00
|
|
|
|
2015-06-06 19:39:04 +02:00
|
|
|
void onFetchActivityData();
|
2015-06-06 00:40:16 +02:00
|
|
|
|
2015-05-17 21:58:08 +02:00
|
|
|
void onReboot();
|
2015-04-14 01:24:03 +02:00
|
|
|
}
|