2020-05-02 11:52:52 +02:00
|
|
|
package info.nightscout.androidaps.dependencyInjection
|
|
|
|
|
|
|
|
import dagger.Module
|
|
|
|
import dagger.android.ContributesAndroidInjector
|
|
|
|
import info.nightscout.androidaps.plugins.pump.omnipod.comm.OmnipodCommunicationManager
|
2020-05-07 00:34:05 +02:00
|
|
|
import info.nightscout.androidaps.plugins.pump.omnipod.defs.state.PodSessionState
|
|
|
|
import info.nightscout.androidaps.plugins.pump.omnipod.dialogs.PodHistoryActivity
|
|
|
|
import info.nightscout.androidaps.plugins.pump.omnipod.dialogs.PodManagementActivity
|
2020-05-05 02:03:01 +02:00
|
|
|
import info.nightscout.androidaps.plugins.pump.omnipod.dialogs.wizard.pages.InitPodRefreshAction
|
2020-05-02 11:52:52 +02:00
|
|
|
import info.nightscout.androidaps.plugins.pump.omnipod.driver.comm.AapsOmnipodManager
|
|
|
|
import info.nightscout.androidaps.plugins.pump.omnipod.driver.ui.OmnipodUITask
|
|
|
|
|
|
|
|
@Module
|
|
|
|
@Suppress("unused")
|
|
|
|
abstract class OmnipodModule {
|
|
|
|
|
2020-05-07 00:34:05 +02:00
|
|
|
// Activities
|
|
|
|
@ContributesAndroidInjector abstract fun contributesPodManagementActivity(): PodManagementActivity
|
|
|
|
@ContributesAndroidInjector abstract fun contributesPodHistoryActivity(): PodHistoryActivity
|
|
|
|
|
2020-05-04 12:27:12 +02:00
|
|
|
@ContributesAndroidInjector abstract fun omnipodCommunicationManagerProvider(): OmnipodCommunicationManager
|
|
|
|
@ContributesAndroidInjector abstract fun omnipodUITaskProvider(): OmnipodUITask
|
|
|
|
@ContributesAndroidInjector abstract fun aapsOmnipodManagerProvider(): AapsOmnipodManager
|
2020-05-05 02:03:01 +02:00
|
|
|
@ContributesAndroidInjector abstract fun initPodRefreshAction(): InitPodRefreshAction
|
2020-05-07 00:34:05 +02:00
|
|
|
@ContributesAndroidInjector abstract fun podSessionState(): PodSessionState
|
|
|
|
|
2020-05-02 11:52:52 +02:00
|
|
|
|
2020-05-07 01:43:18 +02:00
|
|
|
}
|