Some work on caldav imports

This commit is contained in:
Lennart
2025-06-11 00:17:57 +02:00
parent a20e9800bd
commit 41039242ee
6 changed files with 152 additions and 0 deletions

View File

@@ -81,4 +81,11 @@ pub trait CalendarStore: Send + Sync + 'static {
) -> Result<(), Error>;
fn is_read_only(&self) -> bool;
async fn import_calendar(
&self,
principal: &str,
calendar: Calendar,
objects: Vec<CalendarObject>,
) -> Result<(), Error>;
}

View File

@@ -158,4 +158,13 @@ impl<AS: AddressbookStore> CalendarStore for ContactBirthdayStore<AS> {
fn is_read_only(&self) -> bool {
true
}
async fn import_calendar(
&self,
_principal: &str,
_calendar: Calendar,
_objects: Vec<CalendarObject>,
) -> Result<(), Error> {
Err(Error::ReadOnly)
}
}