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

kmail

  • sources
  • kde-4.12
  • kdepim
  • kmail
  • collectionpage
collectionviewpage.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2  This file is part of KMail, the KDE mail client.
3  Copyright (c) 2009 Montel Laurent <montel@kde.org>
4 
5  KMail is free software; you can redistribute it and/or modify it
6  under the terms of the GNU General Public License, version 2, as
7  published by the Free Software Foundation.
8 
9  KMail is distributed in the hope that it will be useful, but
10  WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef COLLECTIONVIEWPAGE_H
20 #define COLLECTIONVIEWPAGE_H
21 
22 #include <akonadi/collectionpropertiespage.h>
23 #include <akonadi/collection.h>
24 class QCheckBox;
25 class QLabel;
26 class KComboBox;
27 class KIconButton;
28 
29 
30 template <typename T> class QSharedPointer;
31 
32 namespace MessageList {
33 namespace Utils {
34 class AggregationComboBox;
35 class ThemeComboBox;
36 }
37 }
38 
39 class CollectionViewPage : public Akonadi::CollectionPropertiesPage
40 {
41  Q_OBJECT
42 public:
43  explicit CollectionViewPage( QWidget *parent = 0 );
44  ~CollectionViewPage();
45 
46  void load( const Akonadi::Collection & col );
47  void save( Akonadi::Collection & col );
48 
49 public slots:
50  void slotChangeIcon( const QString & icon );
51  void slotAggregationCheckboxChanged();
52  void slotThemeCheckboxChanged();
53  void slotSelectFolderAggregation();
54  void slotSelectFolderTheme();
55 
56 private:
57  void init(const Akonadi::Collection&);
58  bool mIsLocalSystemFolder;
59  QCheckBox *mIconsCheckBox;
60  QLabel *mNormalIconLabel;
61  KIconButton *mNormalIconButton;
62  QLabel *mUnreadIconLabel;
63  KIconButton *mUnreadIconButton;
64  KComboBox *mShowSenderReceiverComboBox;
65  QCheckBox *mUseDefaultAggregationCheckBox;
66  MessageList::Utils::AggregationComboBox *mAggregationComboBox;
67  QCheckBox *mUseDefaultThemeCheckBox;
68  MessageList::Utils::ThemeComboBox *mThemeComboBox;
69  Akonadi::Collection mCurrentCollection;
70  int mShowSenderReceiverValue;
71 };
72 
73 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionViewPageFactory, CollectionViewPage )
74 
75 #endif /* COLLECTIONVIEWPAGE_H */
76 
CollectionViewPage::slotSelectFolderAggregation
void slotSelectFolderAggregation()
Definition: collectionviewpage.cpp:210
QSharedPointer
Definition: collectionmailinglistpage.h:34
QWidget
CollectionViewPage::load
void load(const Akonadi::Collection &col)
Definition: collectionviewpage.cpp:224
CollectionViewPage::save
void save(Akonadi::Collection &col)
Definition: collectionviewpage.cpp:270
CollectionViewPage::slotThemeCheckboxChanged
void slotThemeCheckboxChanged()
Definition: collectionviewpage.cpp:205
CollectionViewPage::CollectionViewPage
CollectionViewPage(QWidget *parent=0)
Definition: collectionviewpage.cpp:47
CollectionViewPage::slotChangeIcon
void slotChangeIcon(const QString &icon)
Definition: collectionviewpage.cpp:195
CollectionViewPage
Definition: collectionviewpage.h:39
QLabel
CollectionViewPage::~CollectionViewPage
~CollectionViewPage()
Definition: collectionviewpage.cpp:54
KComboBox
CollectionViewPage::slotSelectFolderTheme
void slotSelectFolderTheme()
Definition: collectionviewpage.cpp:217
CollectionViewPage::slotAggregationCheckboxChanged
void slotAggregationCheckboxChanged()
Definition: collectionviewpage.cpp:200
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • 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