A few getters
This commit is contained in:
parent
99088d29ca
commit
9e625cb94d
1 changed files with 9 additions and 0 deletions
|
@ -66,6 +66,15 @@ impl Calendar {
|
||||||
&self.name
|
&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> {
|
pub fn tasks(&self) -> Vec<&Task> {
|
||||||
self.tasks
|
self.tasks
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Add table
Reference in a new issue