mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-27 17:11:39 +01:00
1caca1439a
The code basically works, but there a lot of things to fix / improve. * The alarms are stored to and read from the Shared Preferences, but there is no persistence within the app (basically they are read and stored at every access) * The alarm list is not updated when coming back from the alarm detail view (probably related to the point above), but the actual alarm is * The alarms preference names is sometimes built by concatenating strings, which is not really safe * There is no check in the alarm constructor whether the stored string is a valid alarm representation * Even though only 3 alarms can be stored on the device, we could have more in the app and let the user choose which to sync * In the alarm detail view XML some material* drawables are used, it's possible that these break on android version < 5 * ...
44 lines
841 B
Java
44 lines
841 B
Java
package nodomain.freeyourgadget.gadgetbridge;
|
|
|
|
import android.net.Uri;
|
|
|
|
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 onSetAlarms();
|
|
|
|
void onSetCallState(String number, String name, GBCommand command);
|
|
|
|
void onSetMusicInfo(String artist, String album, String track);
|
|
|
|
void onFirmwareVersionReq();
|
|
|
|
void onBatteryInfoReq();
|
|
|
|
void onInstallApp(Uri uri);
|
|
|
|
void onAppInfoReq();
|
|
|
|
void onAppStart(UUID uuid);
|
|
|
|
void onAppDelete(UUID uuid);
|
|
|
|
void onPhoneVersion(byte os);
|
|
|
|
void onFetchActivityData();
|
|
|
|
void onReboot();
|
|
|
|
void onFindDevice(boolean start);
|
|
|
|
void onScreenshotReq();
|
|
}
|