|
QtDataSync
4.2.0
A simple offline-first synchronisation framework, to synchronize data of Qt applications between devices
|
A helper class used by the android background sync service to restart the service after a reboot. More...
Inheritance diagram for de.skycoder42.qtdatasync.SyncBootReceiver:Public Member Functions | |
| void | onReceive (Context context, Intent intent) |
| Inherits android.content.BroadcastReceiver.onReceive. | |
Static Public Member Functions | |
| static void | prepareRegistration (Context context, String serviceName, long interval) |
| Prepares a service for beeing rescheduled by registering it with the receiver. More... | |
| static void | clearRegistration (Context context) |
| Remove any service registrations for rescheduling after a reboot. More... | |
Static Public Attributes | |
| static final String | ServiceNameKey = "de.skycoder42.qtdatasync.SyncBootReceiver.key.serviceName" |
| The key used to store the name of the service to be started. | |
| static final String | IntervalKey = "de.skycoder42.qtdatasync.SyncBootReceiver.key.interval" |
| The key used to store the synchronization interval of the service to be started. | |
A helper class used by the android background sync service to restart the service after a reboot.
Definition at line 17 of file SyncBootReceiver.java.
|
inlinestatic |
Remove any service registrations for rescheduling after a reboot.
| context | The android context of the activity/service making this call |
Internally called by QtDataSync::AndroidSyncControl disable rescheduling of the sync service in case background sync gets disabled
Definition at line 62 of file SyncBootReceiver.java.
|
inlinestatic |
Prepares a service for beeing rescheduled by registering it with the receiver.
| context | The android context of the activity/service making this call |
| serviceName | The JAVA-Class name of the service to be run for synchronization |
| interval | The synchronization interval the service should run at |
Internally called by QtDataSync::AndroidSyncControl to ensure a sync service gets rescheduled after a system reboot
Definition at line 48 of file SyncBootReceiver.java.
1.8.14