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

kontact

  • sources
  • kde-4.14
  • kdepim
  • kontact
  • plugins
  • korganizer
apptsummarywidget.h
Go to the documentation of this file.
1 /*
2  This file is part of Kontact.
3 
4  Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
5  Copyright (c) 2005-2006,2008-2009 Allen Winter <winter@kde.org>
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 
26 #ifndef SUMMARYWIDGET_H
27 #define SUMMARYWIDGET_H
28 
29 #include <KontactInterface/Summary>
30 #include <Akonadi/Calendar/ETMCalendar>
31 
32 class KOrganizerPlugin;
33 
34 
35 namespace Akonadi {
36  class Item;
37  class IncidenceChanger;
38 }
39 
40 class QDate;
41 class QGridLayout;
42 class QLabel;
43 
44 class ApptSummaryWidget : public KontactInterface::Summary
45 {
46  Q_OBJECT
47 
48  public:
49  ApptSummaryWidget( KOrganizerPlugin *plugin, QWidget *parent );
50  ~ApptSummaryWidget();
51 
52  int summaryHeight() const { return 3; }
53  QStringList configModules() const;
54  void configUpdated();
55  void updateSummary( bool force = false )
56  {
57  Q_UNUSED( force );
58  updateView();
59  }
60 
61  protected:
62  virtual bool eventFilter( QObject *obj, QEvent *e );
63 
64  private slots:
65  void updateView();
66  void popupMenu( const QString &uid );
67  void viewEvent( const QString &uid );
68  void removeEvent( const Akonadi::Item &item );
69 
70  private:
71  void dateDiff( const QDate &date, int &days );
72 
73  Akonadi::ETMCalendar::Ptr mCalendar;
74  Akonadi::IncidenceChanger *mChanger;
75 
76  QGridLayout *mLayout;
77  QList<QLabel *> mLabels;
78  KOrganizerPlugin *mPlugin;
79  int mDaysAhead;
80  bool mShowBirthdaysFromCal;
81  bool mShowAnniversariesFromCal;
82  bool mShowMineOnly;
83 };
84 
85 #endif
QEvent
QWidget
ApptSummaryWidget::configUpdated
void configUpdated()
Definition: apptsummarywidget.cpp:86
date
time_t date() const
KOrganizerPlugin
Definition: korganizerplugin.h:36
QGridLayout
ApptSummaryWidget
Definition: apptsummarywidget.h:44
ApptSummaryWidget::eventFilter
virtual bool eventFilter(QObject *obj, QEvent *e)
Definition: apptsummarywidget.cpp:271
ApptSummaryWidget::summaryHeight
int summaryHeight() const
Definition: apptsummarywidget.h:52
ApptSummaryWidget::ApptSummaryWidget
ApptSummaryWidget(KOrganizerPlugin *plugin, QWidget *parent)
Definition: apptsummarywidget.cpp:53
ApptSummaryWidget::~ApptSummaryWidget
~ApptSummaryWidget()
Definition: apptsummarywidget.cpp:82
QObject
QDate
QString
QList< QLabel * >
QStringList
ApptSummaryWidget::configModules
QStringList configModules() const
Definition: apptsummarywidget.cpp:286
QLabel
ApptSummaryWidget::updateSummary
void updateSummary(bool force=false)
Definition: apptsummarywidget.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kontact

Skip menu "kontact"
  • Main Page
  • Namespace List
  • 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
  • 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