konsolekalendar Library API Documentation

konsolekalendarexports.h

00001 /******************************************************************************* 00002 * konsolekalendarexports.h * 00003 * * 00004 * KonsoleKalendar is a command line interface to KDE calendars * 00005 * Copyright (C) 2002-2004 Tuukka Pasanen <illuusio@mailcity.com> * 00006 * Copyright (C) 2003-2004 Allen Winter <awinterz@users.sourceforge.net> * 00007 * * 00008 * This program is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU General Public License as published by * 00010 * the Free Software Foundation; either version 2 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This program is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU General Public License * 00019 * along with this program; if not, write to the Free Software * 00020 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00021 * * 00022 * As a special exception, permission is given to link this program * 00023 * with any edition of Qt, and distribute the resulting executable, * 00024 * without including the source code for Qt in the source distribution. * 00025 * * 00026 ******************************************************************************/ 00027 00028 #ifndef _KONSOLEKALENDAREXPORTS_H_ 00029 #define _KONSOLEKALENDAREXPORTS_H_ 00030 00031 #include <qtextstream.h> 00032 00033 #include "konsolekalendarvariables.h" 00034 00035 namespace KCal 00036 { 00037 00038 class KonsoleKalendarExports 00039 { 00040 public: 00041 KonsoleKalendarExports( KonsoleKalendarVariables *variables = 0); 00042 ~KonsoleKalendarExports(); 00043 00044 /* 00045 * These can be changed at anytime;) 00046 * without a notice 00047 */ 00048 00049 00050 bool exportAsTxt( QTextStream *ts, Event *event, QDate date ); 00051 bool exportAsTxtShort( QTextStream *ts, Event *event, QDate date, 00052 bool sameday ); 00053 bool exportAsCSV( QTextStream *ts, Event *event, QDate date ); 00054 00055 00056 private: 00057 KonsoleKalendarVariables *m_variables; 00058 bool m_firstEntry; 00059 QString processField( QString field, QString dquote ); 00060 00061 }; 00062 00063 } 00064 #endif
KDE Logo
This file is part of the documentation for konsolekalendar Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 27 12:53:40 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003