1 /* 2 * qpdl.h (C) 2006-2008, Aurélien Croc (AP²C) 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; version 2 of the License. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program; if not, write to the 15 * Free Software Foundation, Inc., 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 * 18 * $Id$ 19 * 20 */ 21 #ifndef _QPDL_H_ 22 #define _QPDL_H_ 23 24 class Request; 25 class Page; 26 27 /** 28 * Render a page and send the result to STDOUT. 29 * If the output needs to be redirected to a file, please use the 30 * freopen function to redirect the output to a specific place. 31 * @param request the request instance 32 * @param page the page instance 33 * @param lastPage set to TRUE if it's the last page (only used with manual 34 * duplex) 35 * @return TRUE if the page has been rendered into QPDL. Otherwise it returns 36 * FALSE. 37 */ 38 extern bool renderPage(const Request& request, Page* page, bool lastPage=false); 39 #endif /* _QPDL_H_ */ 40 41 /* vim: set expandtab tabstop=4 shiftwidth=4 smarttab tw=80 cin enc=utf8: */ 42 43