• 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
  • kmail
kmail/summarywidget.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) 2013 Laurent Montel <montel@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 
31 #include <KViewStateMaintainer>
32 
33 
34 namespace Akonadi {
35 class ChangeRecorder;
36 class Collection;
37 class EntityTreeModel;
38 class ETMViewStateSaver;
39 class CollectionStatistics;
40 }
41 
42 namespace KontactInterface {
43 class Plugin;
44 }
45 
46 class KCheckableProxyModel;
47 
48 class QGridLayout;
49 class QItemSelectionModel;
50 class QLabel;
51 class QModelIndex;
52 
53 class SummaryWidget : public KontactInterface::Summary
54 {
55  Q_OBJECT
56 
57 public:
58  SummaryWidget( KontactInterface::Plugin *plugin, QWidget *parent );
59 
60  int summaryHeight() const { return 1; }
61  QStringList configModules() const;
62 
63 protected:
64  virtual bool eventFilter( QObject *obj, QEvent *e );
65 
66 public slots:
67  virtual void updateSummary( bool force );
68 
69 private slots:
70  void selectFolder( const QString & );
71  void slotCollectionChanged();
72  void slotRowInserted( const QModelIndex & parent, int start, int end );
73  void slotUpdateFolderList();
74 
75 private:
76  void displayModel( const QModelIndex &, int &, const bool, QStringList );
77 
78  QList<QLabel*> mLabels;
79  QGridLayout *mLayout;
80  KontactInterface::Plugin *mPlugin;
81  Akonadi::ChangeRecorder *mChangeRecorder;
82  Akonadi::EntityTreeModel *mModel;
83  KViewStateMaintainer<Akonadi::ETMViewStateSaver> *mModelState;
84  KCheckableProxyModel *mModelProxy;
85  QItemSelectionModel *mSelectionModel;
86  int mTimeOfLastMessageCountUpdate;
87 };
88 
89 #endif
SummaryWidget::summaryHeight
int summaryHeight() const
Definition: kmail/summarywidget.h:60
SummaryWidget
Definition: kmail/summarywidget.h:53
QWidget
SummaryWidget::updateSummary
virtual void updateSummary(bool force)
Definition: kmail/summarywidget.cpp:113
QObject
SummaryWidget::configModules
QStringList configModules() const
Definition: kmail/summarywidget.cpp:246
QLabel
SummaryWidget::SummaryWidget
SummaryWidget(KontactInterface::Plugin *plugin, QWidget *parent)
Definition: kmail/summarywidget.cpp:55
SummaryWidget::eventFilter
virtual bool eventFilter(QObject *obj, QEvent *e)
Definition: kmail/summarywidget.cpp:232
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