• 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
todosummarywidget.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,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 TODO_SUMMARYWIDGET_H
27 #define TODO_SUMMARYWIDGET_H
28 
29 #include <Akonadi/Item>
30 
31 #include <KCalCore/Todo>
32 
33 #include <KontactInterface/Summary>
34 #include <Akonadi/Calendar/ETMCalendar>
35 
36 class TodoPlugin;
37 
38 namespace Akonadi {
39  class IncidenceChanger;
40 }
41 
42 class QGridLayout;
43 class QLabel;
44 
45 class TodoSummaryWidget : public KontactInterface::Summary
46 {
47  Q_OBJECT
48 
49  public:
50  TodoSummaryWidget( TodoPlugin *plugin, QWidget *parent );
51  ~TodoSummaryWidget();
52 
53  int summaryHeight() const { return 3; }
54  QStringList configModules() const;
55 
56  public slots:
57  void updateSummary( bool force = false )
58  {
59  Q_UNUSED( force );
60  updateView();
61  }
62 
63  protected:
64  virtual bool eventFilter( QObject *obj, QEvent *e );
65 
66  private slots:
67  void updateView();
68  void popupMenu( const QString &uid );
69  void viewTodo( const QString &uid );
70  void removeTodo( const Akonadi::Item &item );
71  void completeTodo( Akonadi::Item::Id id );
72 
73  private:
74  TodoPlugin *mPlugin;
75  QGridLayout *mLayout;
76 
77  bool mDaysToGo;
78  bool mHideInProgress;
79  bool mHideOverdue;
80  bool mHideCompleted;
81  bool mHideOpenEnded;
82  bool mHideNotStarted;
83  bool mShowMineOnly;
84 
85  QList<QLabel*> mLabels;
86  Akonadi::ETMCalendar::Ptr mCalendar;
87  Akonadi::IncidenceChanger *mChanger;
88 
94  bool startsToday( const KCalCore::Todo::Ptr &todo );
95 
101  const QString stateStr( const KCalCore::Todo::Ptr &todo );
102 };
103 
104 #endif
TodoSummaryWidget::summaryHeight
int summaryHeight() const
Definition: todosummarywidget.h:53
QEvent
QWidget
QGridLayout
TodoSummaryWidget
Definition: todosummarywidget.h:45
QObject
TodoSummaryWidget::TodoSummaryWidget
TodoSummaryWidget(TodoPlugin *plugin, QWidget *parent)
Definition: todosummarywidget.cpp:56
TodoSummaryWidget::configModules
QStringList configModules() const
Definition: todosummarywidget.cpp:392
QString
QList< QLabel * >
TodoSummaryWidget::~TodoSummaryWidget
~TodoSummaryWidget()
Definition: todosummarywidget.cpp:80
QStringList
TodoPlugin
Definition: todoplugin.h:35
TodoSummaryWidget::eventFilter
virtual bool eventFilter(QObject *obj, QEvent *e)
Definition: todosummarywidget.cpp:378
TodoSummaryWidget::updateSummary
void updateSummary(bool force=false)
Definition: todosummarywidget.h:57
QLabel
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