/* $Id: todo.h,v 1.5 2010/06/05 23:48:19 khorben Exp $ */ /* Copyright (c) 2009 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Todo */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef TODO_TODO_H # define TODO_TODO_H # include "task.h" # include /* Todo */ /* types */ typedef struct _Todo Todo; /* functions */ Todo * todo_new(void); void todo_delete(Todo * todo); /* useful */ void todo_about(Todo * todo); int todo_error(Todo * todo, char const * message, int ret); /* tasks */ Task * todo_task_add(Todo * todo, Task * task); void todo_task_delete_selected(Todo * todo); void todo_task_remove_all(Todo * todo); /* accessors */ void todo_task_set_title(Todo * todo, GtkTreePath * path, char const * title); void todo_task_edit(Todo * todo); int todo_task_reload_all(Todo * todo); void todo_task_save_all(Todo * todo); void todo_task_select_all(Todo * todo); void todo_task_toggle_done(Todo * todo, GtkTreePath * path); #endif /* !TODO_TODO_H */