AndroidAPS/app/src/main/java/info/nightscout/androidaps/dependencyInjection/FragmentsModule.kt

132 lines
8.8 KiB
Kotlin
Raw Normal View History

2019-12-23 13:27:15 +01:00
package info.nightscout.androidaps.dependencyInjection
import dagger.Module
import dagger.android.ContributesAndroidInjector
import info.nightscout.androidaps.activities.MyPreferenceFragment
2019-12-27 19:20:38 +01:00
import info.nightscout.androidaps.dialogs.*
2019-12-30 11:35:49 +01:00
import info.nightscout.androidaps.plugins.aps.loop.LoopFragment
2019-12-28 01:14:04 +01:00
import info.nightscout.androidaps.plugins.aps.openAPSAMA.OpenAPSAMAFragment
import info.nightscout.androidaps.plugins.aps.openAPSSMB.OpenAPSSMBFragment
2019-12-30 00:53:44 +01:00
import info.nightscout.androidaps.plugins.configBuilder.ConfigBuilderFragment
import info.nightscout.androidaps.plugins.constraints.objectives.ObjectivesFragment
import info.nightscout.androidaps.plugins.constraints.objectives.activities.ObjectivesExamDialog
import info.nightscout.androidaps.plugins.general.actions.ActionsFragment
import info.nightscout.androidaps.plugins.general.automation.AutomationFragment
import info.nightscout.androidaps.plugins.general.automation.dialogs.ChooseActionDialog
import info.nightscout.androidaps.plugins.general.automation.dialogs.ChooseTriggerDialog
import info.nightscout.androidaps.plugins.general.automation.dialogs.EditActionDialog
import info.nightscout.androidaps.plugins.general.automation.dialogs.EditEventDialog
import info.nightscout.androidaps.plugins.general.automation.dialogs.EditTriggerDialog
2020-01-10 23:14:58 +01:00
import info.nightscout.androidaps.plugins.general.food.FoodFragment
import info.nightscout.androidaps.plugins.general.maintenance.MaintenanceFragment
import info.nightscout.androidaps.plugins.general.nsclient.NSClientFragment
import info.nightscout.androidaps.plugins.general.openhumans.OpenHumansFragment
import info.nightscout.androidaps.plugins.general.openhumans.OpenHumansLoginActivity
2019-12-30 00:53:44 +01:00
import info.nightscout.androidaps.plugins.general.overview.OverviewFragment
import info.nightscout.androidaps.plugins.general.overview.dialogs.EditQuickWizardDialog
import info.nightscout.androidaps.plugins.general.smsCommunicator.SmsCommunicatorFragment
2019-12-30 00:53:44 +01:00
import info.nightscout.androidaps.plugins.general.tidepool.TidepoolFragment
2020-03-26 22:43:49 +01:00
import info.nightscout.androidaps.plugins.general.wear.WearFragment
2020-03-16 21:40:29 +01:00
import info.nightscout.androidaps.plugins.insulin.InsulinFragment
2019-12-30 00:53:44 +01:00
import info.nightscout.androidaps.plugins.profile.local.LocalProfileFragment
2019-12-28 22:51:04 +01:00
import info.nightscout.androidaps.plugins.profile.ns.NSProfileFragment
2020-01-10 23:14:58 +01:00
import info.nightscout.androidaps.plugins.pump.combo.ComboFragment
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.dialog.RileyLinkStatusGeneralFragment
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.dialog.RileyLinkStatusHistoryFragment
2020-01-10 23:14:58 +01:00
import info.nightscout.androidaps.plugins.pump.insight.LocalInsightFragment
2019-12-30 00:53:44 +01:00
import info.nightscout.androidaps.plugins.pump.medtronic.MedtronicFragment
2020-04-27 23:02:12 +02:00
import info.nightscout.androidaps.plugins.pump.medtronic.dialog.RileyLinkStatusDeviceMedtronic
import info.nightscout.androidaps.plugins.pump.omnipod.ui.OmnipodOverviewFragment
2019-12-30 00:53:44 +01:00
import info.nightscout.androidaps.plugins.pump.virtual.VirtualPumpFragment
import info.nightscout.androidaps.plugins.source.BGSourceFragment
2019-12-29 00:07:30 +01:00
import info.nightscout.androidaps.plugins.treatments.TreatmentsFragment
2020-03-21 21:00:04 +01:00
import info.nightscout.androidaps.plugins.treatments.fragments.*
import info.nightscout.androidaps.utils.protection.PasswordCheck
2019-12-23 13:27:15 +01:00
@Module
2019-12-30 00:53:44 +01:00
@Suppress("unused")
2019-12-23 13:27:15 +01:00
abstract class FragmentsModule {
2019-12-27 19:20:38 +01:00
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesPreferencesFragment(): MyPreferenceFragment
2019-12-29 00:07:30 +01:00
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesActionsFragment(): ActionsFragment
@ContributesAndroidInjector abstract fun contributesAutomationFragment(): AutomationFragment
@ContributesAndroidInjector abstract fun contributesBGSourceFragment(): BGSourceFragment
2020-01-10 23:14:58 +01:00
@ContributesAndroidInjector abstract fun contributesComboFragment(): ComboFragment
2020-03-16 22:49:34 +01:00
2020-01-10 23:14:58 +01:00
@ContributesAndroidInjector
abstract fun contributesConfigBuilderFragment(): ConfigBuilderFragment
2020-01-02 23:58:21 +01:00
@ContributesAndroidInjector abstract fun contributesFoodFragment(): FoodFragment
2020-03-16 21:40:29 +01:00
@ContributesAndroidInjector abstract fun contributesInsulinFragment(): InsulinFragment
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesLocalProfileFragment(): LocalProfileFragment
@ContributesAndroidInjector abstract fun contributesObjectivesFragment(): ObjectivesFragment
@ContributesAndroidInjector abstract fun contributesOpenAPSAMAFragment(): OpenAPSAMAFragment
@ContributesAndroidInjector abstract fun contributesOpenAPSSMBFragment(): OpenAPSSMBFragment
@ContributesAndroidInjector abstract fun contributesOverviewFragment(): OverviewFragment
2020-01-10 23:14:58 +01:00
@ContributesAndroidInjector abstract fun contributesLocalInsightFragment(): LocalInsightFragment
2019-12-30 11:35:49 +01:00
@ContributesAndroidInjector abstract fun contributesLoopFragment(): LoopFragment
2020-01-01 23:23:16 +01:00
@ContributesAndroidInjector abstract fun contributesMaintenanceFragment(): MaintenanceFragment
@ContributesAndroidInjector abstract fun contributesMedtronicFragment(): MedtronicFragment
@ContributesAndroidInjector abstract fun contributesOmnipodFragment(): OmnipodOverviewFragment
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesNSProfileFragment(): NSProfileFragment
2020-01-10 23:14:58 +01:00
@ContributesAndroidInjector abstract fun contributesNSClientFragment(): NSClientFragment
@ContributesAndroidInjector
abstract fun contributesSmsCommunicatorFragment(): SmsCommunicatorFragment
2020-03-26 22:43:49 +01:00
@ContributesAndroidInjector abstract fun contributesWearFragment(): WearFragment
2020-01-10 23:14:58 +01:00
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesTidepoolFragment(): TidepoolFragment
@ContributesAndroidInjector abstract fun contributesTreatmentsFragment(): TreatmentsFragment
@ContributesAndroidInjector
abstract fun contributesTreatmentsBolusFragment(): TreatmentsBolusFragment
@ContributesAndroidInjector
abstract fun contributesTreatmentsTemporaryBasalsFragment(): TreatmentsTemporaryBasalsFragment
@ContributesAndroidInjector
abstract fun contributesTreatmentsTempTargetFragment(): TreatmentsTempTargetFragment
@ContributesAndroidInjector
abstract fun contributesTreatmentsExtendedBolusesFragment(): TreatmentsExtendedBolusesFragment
@ContributesAndroidInjector
abstract fun contributesTreatmentsCareportalFragment(): TreatmentsCareportalFragment
@ContributesAndroidInjector
abstract fun contributesTreatmentsProfileSwitchFragment(): TreatmentsProfileSwitchFragment
2020-01-10 23:14:58 +01:00
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesVirtualPumpFragment(): VirtualPumpFragment
2019-12-29 00:07:30 +01:00
@ContributesAndroidInjector abstract fun contributesOpenHumansFragment(): OpenHumansFragment
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesCalibrationDialog(): CalibrationDialog
@ContributesAndroidInjector abstract fun contributesCarbsDialog(): CarbsDialog
@ContributesAndroidInjector abstract fun contributesCareDialog(): CareDialog
2019-12-31 13:25:28 +01:00
@ContributesAndroidInjector abstract fun contributesEditActionDialog(): EditActionDialog
@ContributesAndroidInjector abstract fun contributesEditEventDialog(): EditEventDialog
@ContributesAndroidInjector abstract fun contributesEditTriggerDialog(): EditTriggerDialog
2020-03-16 22:49:34 +01:00
2020-01-10 23:14:58 +01:00
@ContributesAndroidInjector
abstract fun contributesEditQuickWizardDialog(): EditQuickWizardDialog
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesExtendedBolusDialog(): ExtendedBolusDialog
@ContributesAndroidInjector abstract fun contributesFillDialog(): FillDialog
2019-12-31 13:25:28 +01:00
@ContributesAndroidInjector abstract fun contributesChooseActionDialog(): ChooseActionDialog
@ContributesAndroidInjector abstract fun contributesChooseTriggerDialog(): ChooseTriggerDialog
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesInsulinDialog(): InsulinDialog
2020-12-26 17:40:16 +01:00
@ContributesAndroidInjector abstract fun contributesLoopDialog(): LoopDialog
2019-12-30 00:53:44 +01:00
@ContributesAndroidInjector abstract fun contributesObjectivesExamDialog(): ObjectivesExamDialog
@ContributesAndroidInjector abstract fun contributesProfileSwitchDialog(): ProfileSwitchDialog
@ContributesAndroidInjector abstract fun contributesTempBasalDialog(): TempBasalDialog
@ContributesAndroidInjector abstract fun contributesTempTargetDialog(): TempTargetDialog
@ContributesAndroidInjector abstract fun contributesTreatmentDialog(): TreatmentDialog
@ContributesAndroidInjector abstract fun contributesWizardDialog(): WizardDialog
2019-12-31 13:25:28 +01:00
@ContributesAndroidInjector abstract fun contributesWizardInfoDialog(): WizardInfoDialog
@ContributesAndroidInjector
abstract fun contributesExchangeAuthTokenDialot(): OpenHumansLoginActivity.ExchangeAuthTokenDialog
@ContributesAndroidInjector abstract fun contributesPasswordCheck(): PasswordCheck
2020-04-25 09:23:19 +02:00
@ContributesAndroidInjector
abstract fun contributesRileyLinkStatusGeneral(): RileyLinkStatusGeneralFragment
@ContributesAndroidInjector
abstract fun contributesRileyLinkStatusHistoryFragment(): RileyLinkStatusHistoryFragment
@ContributesAndroidInjector
abstract fun contributesRileyLinkStatusDeviceMedtronic(): RileyLinkStatusDeviceMedtronic
2019-12-23 13:27:15 +01:00
}