1 /* 2 * Copyright (C) 2003 by Mark Bucciarelli <mark@hubcapconsutling.com> 3 * Copyright (C) 2019 Alexander Potashev <aspotashev@gmail.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License along 16 * with this program; if not, write to the 17 * Free Software Foundation, Inc. 18 * 51 Franklin Street, Fifth Floor 19 * Boston, MA 02110-1301 USA. 20 * 21 */ 22 23 #ifndef KTIMETRACKER_TOTALSASTEXT_H 24 #define KTIMETRACKER_TOTALSASTEXT_H 25 26 #include "reportcriteria.h" 27 28 class TasksModel; 29 class Task; 30 31 /** 32 * Generates ascii text of task totals, for current task on down. 33 * 34 * Formatted for pasting into clipboard. 35 * 36 * @param model The model whose tasks need to be formatted. 37 * @param currentItem The task that needs to be formatted along with its subtasks. 38 * @param rc Criteria which filters the task information. 39 */ 40 QString totalsAsText(TasksModel *model, Task *currentItem, const ReportCriteria &rc); 41 42 #endif // KTIMETRACKER_TOTALSASTEXT_H 43