mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 01:12:24 +00:00
Support read-only calendar store as preparation for birthday calendars
This commit is contained in:
@@ -61,4 +61,6 @@ pub trait CalendarStore: Send + Sync + 'static {
|
||||
cal_id: &str,
|
||||
object_id: &str,
|
||||
) -> Result<(), Error>;
|
||||
|
||||
fn is_read_only(&self) -> bool;
|
||||
}
|
||||
|
||||
@@ -140,4 +140,8 @@ impl<AS: AddressbookStore> CalendarStore for ContactBirthdayStore<AS> {
|
||||
) -> Result<(), Error> {
|
||||
Err(Error::ReadOnly)
|
||||
}
|
||||
|
||||
fn is_read_only(&self) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user