1 2 /************************************************************************** 3 * Copyright (C) 2007-2019 Ruben Pollan Bella <meskio@sindominio.net> * 4 * * 5 * This file is part of TuDu. * 6 * * 7 * TuDu is free software; you can redistribute it and/or modify * 8 * it under the terms of the GNU General Public License as published by * 9 * the Free Software Foundation; version 3 of the License. * 10 * * 11 * TuDu is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU General Public License * 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 18 **************************************************************************/ 19 20 #ifndef SCHEDULE_H 21 #define SCHEDULE_H 22 23 #include "includes.h" 24 #include "data.h" 25 #include "date.h" 26 27 typedef list<pToDo> sched_l; 28 29 class Sched 30 { 31 public: 32 void add(pToDo todo); 33 void add_recursive(pToDo todo); 34 void up(pToDo todo); 35 void down(pToDo todo); 36 void del(pToDo todo); 37 void del_recursive(pToDo todo); 38 int get(sched_l& list); 39 int get(Date& from, sched_l& list); 40 private: 41 sched_l sched; 42 }; 43 44 #endif 45