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

korganizer

  • sources
  • kde-4.14
  • kdepim
  • korganizer
  • views
  • journalview
kojournalview.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program 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
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License along
18  with this program; if not, write to the Free Software Foundation, Inc.,
19  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of Qt, and distribute the resulting executable,
23  without including the source code for Qt in the source distribution.
24 */
25 #ifndef KORG_VIEWS_KOJOURNALVIEW_H
26 #define KORG_VIEWS_KOJOURNALVIEW_H
27 
28 #include "korganizer/baseview.h"
29 #include <KCalCore/Incidence> // for KCalCore::DateList typedef
30 
31 namespace EventViews {
32  class JournalView;
33 }
34 
42 class KOJournalView : public KOrg::BaseView
43 {
44  Q_OBJECT
45  public:
46  explicit KOJournalView( QWidget *parent = 0 );
47  ~KOJournalView();
48 
49  virtual int currentDateCount() const;
50  virtual Akonadi::Item::List selectedIncidences();
51 
52  KCalCore::DateList selectedIncidenceDates()
53  {
54  return KCalCore::DateList();
55  }
56 
57  void setCalendar( const Akonadi::ETMCalendar::Ptr & );
58 
60  void getHighlightMode( bool &highlightEvents,
61  bool &highlightTodos,
62  bool &highlightJournals );
63 
65  CalendarSupport::CalPrinterBase::PrintType printType() const;
66 
67  public Q_SLOTS:
68  void updateView();
69  void flushView();
70 
71  void showDates( const QDate &start, const QDate &end, const QDate &preferredMonth = QDate() );
72  void showIncidences( const Akonadi::Item::List &incidences, const QDate &date );
73 
74  void changeIncidenceDisplay( const Akonadi::Item &incidence,
75  Akonadi::IncidenceChanger::ChangeType );
76  void setIncidenceChanger( Akonadi::IncidenceChanger *changer );
77  void printJournal( const KCalCore::Journal::Ptr &journal, bool preview );
78 
79  private:
80  EventViews::JournalView *mJournalView;
81 };
82 
83 #endif
KOJournalView::showIncidences
void showIncidences(const Akonadi::Item::List &incidences, const QDate &date)
Definition: kojournalview.cpp:142
QWidget
KOJournalView::flushView
void flushView()
Definition: kojournalview.cpp:132
KOJournalView::printJournal
void printJournal(const KCalCore::Journal::Ptr &journal, bool preview)
Definition: kojournalview.cpp:178
baseview.h
KOJournalView::setCalendar
void setCalendar(const Akonadi::ETMCalendar::Ptr &)
Definition: kojournalview.cpp:172
KOJournalView::selectedIncidences
virtual Akonadi::Item::List selectedIncidences()
Definition: kojournalview.cpp:122
KOJournalView::selectedIncidenceDates
KCalCore::DateList selectedIncidenceDates()
Returns a list of the dates of selected events.
Definition: kojournalview.h:52
KOJournalView::getHighlightMode
void getHighlightMode(bool &highlightEvents, bool &highlightTodos, bool &highlightJournals)
reimp
Definition: kojournalview.cpp:158
KOJournalView::currentDateCount
virtual int currentDateCount() const
Returns the number of currently shown dates.
Definition: kojournalview.cpp:117
KOJournalView::setIncidenceChanger
void setIncidenceChanger(Akonadi::IncidenceChanger *changer)
Definition: kojournalview.cpp:153
QDate
KOJournalView
This class provides a journal view.
Definition: kojournalview.h:42
KOJournalView::KOJournalView
KOJournalView(QWidget *parent=0)
Definition: kojournalview.cpp:44
KOJournalView::showDates
void showDates(const QDate &start, const QDate &end, const QDate &preferredMonth=QDate())
Definition: kojournalview.cpp:137
KOJournalView::~KOJournalView
~KOJournalView()
Definition: kojournalview.cpp:113
KOJournalView::updateView
void updateView()
Definition: kojournalview.cpp:127
KOrg::BaseView
This class provides an interface for all views being displayed within the main calendar view...
Definition: baseview.h:52
KOJournalView::changeIncidenceDisplay
void changeIncidenceDisplay(const Akonadi::Item &incidence, Akonadi::IncidenceChanger::ChangeType)
Definition: kojournalview.cpp:147
KOJournalView::printType
CalendarSupport::CalPrinterBase::PrintType printType() const
reimp
Definition: kojournalview.cpp:167
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:59 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
  • pimprint

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