konsolekalendar

konsolekalendarexports.h
Go to the documentation of this file.
1/*******************************************************************************
2 * konsolekalendarexports.h *
3 * *
4 * KonsoleKalendar is a command line interface to KDE calendars *
5 * Copyright (C) 2002-2004 Tuukka Pasanen <illuusio@mailcity.com> *
6 * Copyright (C) 2003-2005 Allen Winter <winter@kde.org> *
7 * *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program; if not, write to the Free Software *
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
21 * *
22 * As a special exception, permission is given to link this program *
23 * with any edition of TQt, and distribute the resulting executable, *
24 * without including the source code for TQt in the source distribution. *
25 * *
26 ******************************************************************************/
27
28#ifndef _KONSOLEKALENDAREXPORTS_H_
29#define _KONSOLEKALENDAREXPORTS_H_
30
31#include <tqtextstream.h>
32
34
40namespace KCal
41{
48 {
49 public:
50
60
67 bool exportAsTxt( TQTextStream *ts, Event *event, TQDate date );
76 bool exportAsTxtShort( TQTextStream *ts, Event *event, TQDate date,
77 bool sameday );
84 bool exportAsCSV( TQTextStream *ts, Event *event, TQDate date );
85
86 private:
87 KonsoleKalendarVariables *m_variables;
88 bool m_firstEntry;
96 TQString processField( TQString field, TQString dquote );
97
98 };
99
100}
101#endif
Class to manage the Export functionality.
bool exportAsTxtShort(TQTextStream *ts, Event *event, TQDate date, bool sameday)
Export the Event in Short Text Mode.
bool exportAsCSV(TQTextStream *ts, Event *event, TQDate date)
Export the Event in Comma-Separated Values (CSV) Mode.
KonsoleKalendarExports(KonsoleKalendarVariables *vars=0)
Constructs a KonsoleKalendarChange object from command line arguments.
bool exportAsTxt(TQTextStream *ts, Event *event, TQDate date)
Export the Event in Text Mode.
This class provides all the variables for the program.
Provides the KonsoleKalendarVariables class definition.