summaryrefslogtreecommitdiff
path: root/core/pim/todo/todomanager.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/todomanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todomanager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/pim/todo/todomanager.cpp b/core/pim/todo/todomanager.cpp
index 1f81539..b5b87de 100644
--- a/core/pim/todo/todomanager.cpp
+++ b/core/pim/todo/todomanager.cpp
@@ -82,18 +82,21 @@ void TodoManager::add( const OTodo& ev ) {
void TodoManager::update( int, const SmallTodo& ) {
}
void TodoManager::update( int, const OTodo& ev) {
m_db->replace( ev );
}
-void TodoManager::remove( int uid ) {
- m_db->remove( uid );
+bool TodoManager::remove( int uid ) {
+ return m_db->remove( uid );
}
void TodoManager::removeAll() {
m_db->clear();
}
+void TodoManager::removeCompleted() {
+ m_db->removeAllCompleted();
+}
void TodoManager::save() {
m_db->save();
}
bool TodoManager::saveAll() {
return m_db->save();
}