1 /*
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 package com.android.systemui.keyguard.ui.view.layout.blueprints
19 
20 import com.android.systemui.CoreStartable
21 import com.android.systemui.keyguard.domain.interactor.KeyguardBlueprintInteractor
22 import com.android.systemui.keyguard.shared.model.KeyguardBlueprint
23 import com.android.systemui.keyguard.ui.view.layout.KeyguardBlueprintCommandListener
24 import dagger.Binds
25 import dagger.Module
26 import dagger.multibindings.ClassKey
27 import dagger.multibindings.IntoMap
28 import dagger.multibindings.IntoSet
29 
30 @Module
31 abstract class KeyguardBlueprintModule {
32     @Binds
33     @IntoSet
bindDefaultBlueprintnull34     abstract fun bindDefaultBlueprint(
35         defaultLockscreenBlueprint: DefaultKeyguardBlueprint
36     ): KeyguardBlueprint
37 
38     @Binds
39     @IntoSet
40     abstract fun bindSplitShadeBlueprint(
41         splitShadeBlueprint: SplitShadeKeyguardBlueprint
42     ): KeyguardBlueprint
43 
44     @Binds
45     @IntoSet
46     abstract fun bindShortcutsBesideUdfpsLockscreenBlueprint(
47         shortcutsBesideUdfpsLockscreenBlueprint: ShortcutsBesideUdfpsKeyguardBlueprint
48     ): KeyguardBlueprint
49 
50     @Binds
51     @IntoMap
52     @ClassKey(KeyguardBlueprintInteractor::class)
53     abstract fun bindsKeyguardBlueprintInteractor(
54         keyguardBlueprintInteractor: KeyguardBlueprintInteractor
55     ): CoreStartable
56 
57     @Binds
58     @IntoMap
59     @ClassKey(KeyguardBlueprintCommandListener::class)
60     abstract fun bindsKeyguardBlueprintCommandListener(
61         keyguardBlueprintCommandListener: KeyguardBlueprintCommandListener
62     ): CoreStartable
63 }
64