1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-15 21:27:51 +01:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service
cpfeiffer a1cb246e27 Add and use a "client interface" for the actions of the service
Previously, the DeviceCommunicationService was invoked directly,
via
Intent intent = new Intent(foo, bar);
intent.setExtra(EXTRA_BAZ, baz);
startService(...);

and this was scattered throughout GadgetBridge.
Now there is a "frontend" available, so that you can call
the service more easily, like
GBApplication.deviceService().connect();

For a start, this client interface (DeviceService) actually
implements the same interface (EventHandler) as the receiving side
(DeviceSupport). This may change in the future.

This will also make testing much easier, because we can use
this client interface to invoke the test service as well.
2015-08-21 01:03:57 +02:00
..
btle Make the Operations classes BLE-generic 2015-08-18 00:31:40 +02:00
devices Add and use a "client interface" for the actions of the service 2015-08-21 01:03:57 +02:00
receivers Big refactoring: move classes and packages around to get a better structure 2015-08-03 23:09:49 +02:00
serial Add and use a "client interface" for the actions of the service 2015-08-21 01:03:57 +02:00
AbstractDeviceSupport.java Finally, the prev and next buttons do something (#79) 2015-08-17 02:22:16 +02:00
DeviceCommunicationService.java Add and use a "client interface" for the actions of the service 2015-08-21 01:03:57 +02:00
DeviceSupport.java Last refactoring for now: BluetoothCommunicationService 2015-08-04 01:01:14 +02:00
DeviceSupportFactory.java Pebble: Emulator support 2015-08-19 00:06:15 +02:00
ServiceDeviceSupport.java Add and use a "client interface" for the actions of the service 2015-08-21 01:03:57 +02:00