From 9e625cb94d5b060124e7fb78bfa9c1897e6711b1 Mon Sep 17 00:00:00 2001 From: daladim Date: Sun, 21 Feb 2021 23:24:33 +0100 Subject: [PATCH] A few getters --- src/data/calendar.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/data/calendar.rs b/src/data/calendar.rs index 58163b9..8f8ee60 100644 --- a/src/data/calendar.rs +++ b/src/data/calendar.rs @@ -66,6 +66,15 @@ impl Calendar { &self.name } + pub fn url(&self) -> &Url { + &self.url + } + + /// Returns whether this calDAV calendar supports to-do items + pub fn supports_todo(&self) -> bool { + self.supported_components.contains(SupportedComponents::Todo) + } + pub fn tasks(&self) -> Vec<&Task> { self.tasks .iter()