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

kontact

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

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