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

korganizer

  • sources
  • kde-4.12
  • kdepim
  • korganizer
htmlexportjob.h
Go to the documentation of this file.
1 /*
2  This file is part of the kcal library.
3 
4  Copyright (c) 2000-2003 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef KORG_HTMLEXPORTJOB_H
24 #define KORG_HTMLEXPORTJOB_H
25 
26 #include <KCalCore/Event>
27 #include <KCalCore/Todo>
28 #include <Akonadi/Calendar/ETMCalendar>
29 
30 #include <KJob>
31 
32 class QTextStream;
33 
34 namespace KOrg {
35 
36 class HTMLExportSettings;
37 class MainWindow;
38 
42 class HtmlExportJob : public KJob
43 {
44  Q_OBJECT
45  public:
55  HtmlExportJob( const Akonadi::ETMCalendar::Ptr &calendar,
56  HTMLExportSettings *settings, bool autoMode,
57  KOrg::MainWindow *mainWindow,
58  QWidget *parent = 0 );
59 
60  virtual ~HtmlExportJob();
61 
62  void addHoliday( const QDate &date, const QString &name );
63 
64  virtual void start();
65  HTMLExportSettings *settings() const;
66 
67  protected:
68  void createWeekView( QTextStream *ts );
69  void createMonthView( QTextStream *ts );
70  void createEventList( QTextStream *ts );
71  void createTodoList( QTextStream *ts );
72  void createJournalView( QTextStream *ts );
73  void createFreeBusyView( QTextStream *ts );
74 
75  void createTodo( QTextStream *ts, const KCalCore::Todo::Ptr &todo );
76  void createEvent( QTextStream *ts, const KCalCore::Event::Ptr &event, QDate date,
77  bool withDescription = true );
78  void createFooter( QTextStream *ts );
79 
80  bool checkSecrecy( const KCalCore::Incidence::Ptr &incidence );
81 
82  void formatLocation( QTextStream *ts, const KCalCore::Incidence::Ptr &incidence );
83  void formatCategories( QTextStream *ts, const KCalCore::Incidence::Ptr &incidence );
84  void formatAttendees( QTextStream *ts, const KCalCore::Incidence::Ptr &incidence );
85 
86  QString breakString( const QString &text );
87 
88  QDate fromDate() const;
89  QDate toDate() const;
90  QString styleSheet() const;
91 
92  private Q_SLOTS:
93  void receivedOrganizerInfo( KJob * );
94 
95  private:
99  bool save( const QString &fileName = QString() );
100 
104  bool save( QTextStream *ts );
105 
106  void finishExport();
107 
108  //@cond PRIVATE
109  Q_DISABLE_COPY( HtmlExportJob )
110  class Private;
111  Private *const d;
112  //@endcond
113 };
114 
115 }
116 
117 #endif
KOrg::HtmlExportJob::createEvent
void createEvent(QTextStream *ts, const KCalCore::Event::Ptr &event, QDate date, bool withDescription=true)
Definition: htmlexportjob.cpp:426
KOrg::HTMLExportSettings
Definition: htmlexportsettings.h:12
KOrg::HtmlExportJob::createTodo
void createTodo(QTextStream *ts, const KCalCore::Todo::Ptr &todo)
Definition: htmlexportjob.cpp:595
KOrg::HtmlExportJob::createTodoList
void createTodoList(QTextStream *ts)
Definition: htmlexportjob.cpp:481
QWidget
KOrg::HtmlExportJob::formatLocation
void formatLocation(QTextStream *ts, const KCalCore::Incidence::Ptr &incidence)
Definition: htmlexportjob.cpp:720
KOrg::HtmlExportJob::fromDate
QDate fromDate() const
Definition: htmlexportjob.cpp:889
KOrg::HtmlExportJob::start
virtual void start()
Definition: htmlexportjob.cpp:89
KOrg::HtmlExportJob::styleSheet
QString styleSheet() const
Definition: htmlexportjob.cpp:844
KOrg::HtmlExportJob::addHoliday
void addHoliday(const QDate &date, const QString &name)
Definition: htmlexportjob.cpp:879
KOrg::HtmlExportJob::HtmlExportJob
HtmlExportJob(const Akonadi::ETMCalendar::Ptr &calendar, HTMLExportSettings *settings, bool autoMode, KOrg::MainWindow *mainWindow, QWidget *parent=0)
Create new HTML exporter for calendar.
Definition: htmlexportjob.cpp:76
KOrg::HtmlExportJob::createMonthView
void createMonthView(QTextStream *ts)
Definition: htmlexportjob.cpp:285
KOrg::HtmlExportJob::createFooter
void createFooter(QTextStream *ts)
Definition: htmlexportjob.cpp:786
KOrg::HtmlExportJob::createJournalView
void createJournalView(QTextStream *ts)
Definition: htmlexportjob.cpp:691
KOrg::MainWindow
interface for korganizer main window
Definition: mainwindow.h:44
KOrg::HtmlExportJob::checkSecrecy
bool checkSecrecy(const KCalCore::Incidence::Ptr &incidence)
Definition: htmlexportjob.cpp:704
KOrg::HtmlExportJob::settings
HTMLExportSettings * settings() const
Definition: htmlexportjob.cpp:899
KOrg::HtmlExportJob::formatAttendees
void formatAttendees(QTextStream *ts, const KCalCore::Incidence::Ptr &incidence)
Definition: htmlexportjob.cpp:738
KOrg::HtmlExportJob::createFreeBusyView
void createFreeBusyView(QTextStream *ts)
Definition: htmlexportjob.cpp:698
KOrg::HtmlExportJob::~HtmlExportJob
virtual ~HtmlExportJob()
Definition: htmlexportjob.cpp:83
KOrg::HtmlExportJob::createWeekView
void createWeekView(QTextStream *ts)
Definition: htmlexportjob.cpp:685
KOrg::HtmlExportJob::formatCategories
void formatCategories(QTextStream *ts, const KCalCore::Incidence::Ptr &incidence)
Definition: htmlexportjob.cpp:729
KJob
KOrg::HtmlExportJob::createEventList
void createEventList(QTextStream *ts)
Definition: htmlexportjob.cpp:374
KOrg::HtmlExportJob
This class provides the functions to export a calendar as a HTML page.
Definition: htmlexportjob.h:42
KOrg::HtmlExportJob::breakString
QString breakString(const QString &text)
Definition: htmlexportjob.cpp:767
KOrg::HtmlExportJob::toDate
QDate toDate() const
Definition: htmlexportjob.cpp:894
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • 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