• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

KonsoleKalendar

  • sources
  • kde-4.12
  • kdepim
  • console
  • 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 Qt, and distribute the resulting executable, *
24  * without including the source code for Qt in the source distribution. *
25  * *
26  ******************************************************************************/
27 
28 #ifndef KONSOLEKALENDAREXPORTS_H
29 #define KONSOLEKALENDAREXPORTS_H
30 
31 #include <QtCore/QTextStream>
32 
33 #include "konsolekalendarvariables.h"
34 
46 class KonsoleKalendarExports
47 {
48  public:
49 
54  explicit KonsoleKalendarExports( KonsoleKalendarVariables *vars = 0 );
55 
59  ~KonsoleKalendarExports();
60 
67  bool exportAsTxt( QTextStream *ts, const KCalCore::Event::Ptr &event, const QDate &date );
68 
77  bool exportAsTxtShort( QTextStream *ts, const KCalCore::Event::Ptr &event, const QDate &date,
78  bool sameday );
79 
86  bool exportAsCSV( QTextStream *ts, const KCalCore::Event::Ptr &event, const QDate &date );
87 
88  private:
89  //@cond PRIVATE
90  KonsoleKalendarVariables *m_variables;
91  bool m_firstEntry;
92  //@endcond
93 
101  QString processField( const QString &field, const QString &dquote );
102 
103 };
104 
105 #endif
KonsoleKalendarExports
Class to manage the Export functionality.
Definition: konsolekalendarexports.h:46
KonsoleKalendarExports::exportAsTxtShort
bool exportAsTxtShort(QTextStream *ts, const KCalCore::Event::Ptr &event, const QDate &date, bool sameday)
Export the Event in Short Text Mode.
Definition: konsolekalendarexports.cpp:146
KonsoleKalendarExports::exportAsTxt
bool exportAsTxt(QTextStream *ts, const KCalCore::Event::Ptr &event, const QDate &date)
Export the Event in Text Mode.
Definition: konsolekalendarexports.cpp:60
KonsoleKalendarVariables
This class provides all the variables for the program.
Definition: konsolekalendarvariables.h:73
KonsoleKalendarExports::KonsoleKalendarExports
KonsoleKalendarExports(KonsoleKalendarVariables *vars=0)
Constructs a KonsoleKalendarChange object from command line arguments.
Definition: konsolekalendarexports.cpp:50
KonsoleKalendarExports::exportAsCSV
bool exportAsCSV(QTextStream *ts, const KCalCore::Event::Ptr &event, const QDate &date)
Export the Event in Comma-Separated Values (CSV) Mode.
Definition: konsolekalendarexports.cpp:219
KonsoleKalendarExports::~KonsoleKalendarExports
~KonsoleKalendarExports()
Destructor.
Definition: konsolekalendarexports.cpp:56
konsolekalendarvariables.h
Provides the KonsoleKalendarVariables class definition.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KonsoleKalendar

Skip menu "KonsoleKalendar"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal