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

calendarsupport

  • sources
  • kde-4.12
  • kdepim
  • calendarsupport
  • next
incidenceviewer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company
3 
4  Author: Tobias Koenig <tokoe@kde.org>
5 
6  This library is free software; you can redistribute it and/or modify it
7  under the terms of the GNU Library General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or (at your
9  option) any later version.
10 
11  This library is distributed in the hope that it will be useful, but WITHOUT
12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14  License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to the
18  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  02110-1301, USA.
20 */
21 
22 #ifndef CALENDARSUPPORT_INCIDENCEVIEWER_H
23 #define CALENDARSUPPORT_INCIDENCEVIEWER_H
24 
25 #include "../calendarsupport_export.h"
26 
27 #include <Akonadi/ItemMonitor>
28 
29 #include <QDate>
30 #include <QWidget>
31 
32 class QAbstractItemModel;
33 
34 namespace Akonadi {
35  class ETMCalendar;
36 }
37 
38 namespace CalendarSupport {
39 
62 class CALENDARSUPPORT_EXPORT IncidenceViewer : public QWidget, public Akonadi::ItemMonitor
63 {
64  Q_OBJECT
65 
66  public:
74  explicit IncidenceViewer( Akonadi::ETMCalendar *calendar, QWidget *parent = 0 );
75 
82  explicit IncidenceViewer( QWidget *parent = 0 );
83 
87  ~IncidenceViewer();
88 
93  void setCalendar( Akonadi::ETMCalendar *calendar );
94 
98  Akonadi::Item incidence() const;
99 
103  QDate activeDate() const;
104 
108  QAbstractItemModel *attachmentModel() const;
109 
114  void setDelayedClear( bool delayed );
115 
119  void setDefaultMessage( const QString &message );
120 
124  void setHeaderText( const QString &text );
125 
126  public Q_SLOTS:
133  void setIncidence( const Akonadi::Item &incidence, const QDate &activeDate = QDate() );
134 
135  protected:
139  void init();
140 
141  private:
145  virtual void itemChanged( const Akonadi::Item &group );
146 
151  virtual void itemRemoved();
152 
153  private:
154  //@cond PRIVATE
155  class Private;
156  Private *const d;
157 
158  Q_PRIVATE_SLOT( d, void slotParentCollectionFetched( KJob * ) )
159  Q_PRIVATE_SLOT( d, void slotAttachmentUrlClicked( const QString& ) )
160  //@endcond
161 };
162 
163 }
164 
165 #endif
QWidget
CalendarSupport::incidence
CALENDARSUPPORT_EXPORT KCalCore::Incidence::Ptr incidence(const Akonadi::Item &item)
returns the incidence from an akonadi item, or a null pointer if the item has no such payload ...
Definition: utils.cpp:75
CalendarSupport::IncidenceViewer
A viewer component for incidences in Akonadi.
Definition: incidenceviewer.h:62
CALENDARSUPPORT_EXPORT
#define CALENDARSUPPORT_EXPORT
Definition: calendarsupport_export.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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