mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 17:12:22 +00:00
Some work on caldav imports
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user