• 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
  • views
  • timelineview
kotimelineview.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2007 Till Adam <adam@kde.org>
5 
6  Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
7  Copyright (c) 2010 Andras Mantia <andras@kdab.com>
8  Copyright (c) 2010 SĂ©rgio Martins <sergio.martins@kdab.com>
9 
10  This program is free software; you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation; either version 2 of the License, or
13  (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License along
21  with this program; if not, write to the Free Software Foundation, Inc.,
22  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 
24  As a special exception, permission is given to link this program
25  with any edition of Qt, and distribute the resulting executable,
26  without including the source code for Qt in the source distribution.
27 */
28 
29 #ifndef KORG_VIEWS_KOTIMELINEVIEW_H
30 #define KORG_VIEWS_KOTIMELINEVIEW_H
31 
32 #include "koeventview.h"
33 
34 namespace Akonadi {
35  class IncidenceChanger;
36 }
37 
41 class KOTimelineView : public KOEventView
42 {
43  Q_OBJECT
44  public:
45  explicit KOTimelineView( QWidget *parent = 0 );
46  ~KOTimelineView();
47 
48  virtual Akonadi::Item::List selectedIncidences();
49  virtual KCalCore::DateList selectedIncidenceDates();
50  virtual int currentDateCount() const;
51  virtual void showDates( const QDate &, const QDate &, const QDate &preferredMonth = QDate() );
52  virtual void showIncidences( const Akonadi::Item::List &incidenceList, const QDate &date );
53  virtual void updateView();
54  virtual void changeIncidenceDisplay( const Akonadi::Item &incidence,
55  Akonadi::IncidenceChanger::ChangeType );
56  virtual int maxDatesHint() const { return 0; }
57  virtual bool eventDurationHint( QDateTime &startDt, QDateTime &endDt, bool &allDay );
58  virtual void setCalendar( const Akonadi::ETMCalendar::Ptr &cal );
59  virtual void setIncidenceChanger( Akonadi::IncidenceChanger *changer );
60 
61  // Specific for korg, not in eventviews
62  virtual KOrg::CalPrinterBase::PrintType printType() const;
63 
64  private:
65  class Private;
66  Private * const d;
67 };
68 
69 #endif
KOTimelineView::selectedIncidenceDates
virtual KCalCore::DateList selectedIncidenceDates()
Returns a list of the dates of selected events.
Definition: kotimelineview.cpp:142
KOTimelineView::showIncidences
virtual void showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
Shows given incidences.
Definition: kotimelineview.cpp:160
KOTimelineView::~KOTimelineView
~KOTimelineView()
Definition: kotimelineview.cpp:130
KOTimelineView::printType
virtual KOrg::CalPrinterBase::PrintType printType() const
Definition: kotimelineview.cpp:185
QWidget
KOTimelineView::setIncidenceChanger
virtual void setIncidenceChanger(Akonadi::IncidenceChanger *changer)
Assign a new incidence change helper object.
Definition: kotimelineview.cpp:202
KOTimelineView::changeIncidenceDisplay
virtual void changeIncidenceDisplay(const Akonadi::Item &incidence, Akonadi::IncidenceChanger::ChangeType)
Updates the current display to reflect the changes to one particular incidence.
Definition: kotimelineview.cpp:173
KOEventView
KOEventView is the abstract base class from which all other calendar views for event data are derived...
Definition: koeventview.h:54
KOTimelineView::selectedIncidences
virtual Akonadi::Item::List selectedIncidences()
Definition: kotimelineview.cpp:136
KOTimelineView::eventDurationHint
virtual bool eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay)
Sets the default start/end date/time for new events.
Definition: kotimelineview.cpp:179
KOTimelineView::currentDateCount
virtual int currentDateCount() const
Returns the number of currently shown dates.
Definition: kotimelineview.cpp:148
koeventview.h
KOTimelineView
This class provides a view ....
Definition: kotimelineview.h:41
KOTimelineView::maxDatesHint
virtual int maxDatesHint() const
provides a hint back to the caller on the maximum number of dates that the view supports.
Definition: kotimelineview.h:56
KOTimelineView::showDates
virtual void showDates(const QDate &, const QDate &, const QDate &preferredMonth=QDate())
Definition: kotimelineview.cpp:154
KOTimelineView::setCalendar
virtual void setCalendar(const Akonadi::ETMCalendar::Ptr &cal)
Definition: kotimelineview.cpp:195
KOTimelineView::KOTimelineView
KOTimelineView(QWidget *parent=0)
Definition: kotimelineview.cpp:57
KOrg::CalPrinterBase::PrintType
PrintType
Definition: printplugin.h:45
KOTimelineView::updateView
virtual void updateView()
Updates the current display to reflect changes that may have happened in the calendar since the last ...
Definition: kotimelineview.cpp:167
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