Add type parameter to calendar list

This commit is contained in:
MM20
2024-08-15 17:55:45 +02:00
parent d263f8cbbc
commit bf29ce6f08
7 changed files with 46 additions and 7 deletions
@@ -1,5 +1,7 @@
package de.mm20.launcher2.plugin.contracts
import de.mm20.launcher2.search.calendar.CalendarListType
abstract class CalendarPluginContract {
object EventColumns : Columns() {
/**
@@ -68,6 +70,7 @@ abstract class CalendarPluginContract {
val Name = column<String>("name")
val Color = column<Int>("color")
val AccountName = column<String>("account_name")
val ContentTypes = column<List<CalendarListType>>("content_types")
}
@@ -0,0 +1,6 @@
package de.mm20.launcher2.search.calendar
enum class CalendarListType {
Calendar,
Tasks,
}