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

messagelist

  • sources
  • kde-4.12
  • kdepim
  • messagelist
  • utils
aggregationcombobox.h
Go to the documentation of this file.
1 /* Copyright 2009 James Bendig <james@imptalk.com>
2 
3  This program is free software; you can redistribute it and/or
4  modify it under the terms of the GNU General Public License as
5  published by the Free Software Foundation; either version 2 of
6  the License or (at your option) version 3 or any later version
7  accepted by the membership of KDE e.V. (or its successor approved
8  by the membership of KDE e.V.), which shall act as a proxy
9  defined in Section 14 of version 3 of the license.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef __MESSAGELIST_UTILS_AGGREGATIONCOMBOBOX_H__
20 #define __MESSAGELIST_UTILS_AGGREGATIONCOMBOBOX_H__
21 
22 #include <messagelist/messagelist_export.h>
23 #include <KComboBox>
24 #include <akonadi/collection.h>
25 namespace MessageList
26 {
27 
28 namespace Core
29 {
30 
31 class Aggregation;
32 class StorageModel;
33 
34 }
35 
36 namespace Utils
37 {
38 
39 class AggregationComboBoxPrivate;
43 class MESSAGELIST_EXPORT AggregationComboBox : public KComboBox
44 {
45  Q_OBJECT
46 
47 public:
48  explicit AggregationComboBox( QWidget * parent );
49  ~AggregationComboBox();
50 
51  QString currentAggregation() const;
52 
53  void writeDefaultConfig() const;
54 
55  void writeStorageModelConfig( MessageList::Core::StorageModel *storageModel, bool isPrivateSetting ) const;
56  void writeStorageModelConfig( const Akonadi::Collection &col, bool isPrivateSetting ) const;
57  void writeStorageModelConfig( const QString &id, bool isPrivateSetting ) const;
58 
59  void readStorageModelConfig( MessageList::Core::StorageModel *storageModel, bool &isPrivateSetting );
60  void readStorageModelConfig( const Akonadi::Collection &col, bool &isPrivateSetting );
61  void readStorageModelConfig( const QString &id, bool &isPrivateSetting );
62 
63 public Q_SLOTS:
64  void selectDefault();
65 
66 private:
67  Q_PRIVATE_SLOT(d, void slotLoadAggregations())
68 
69  AggregationComboBoxPrivate * const d;
70 };
71 
72 } // namespace Utils
73 
74 } // namespace MessageList
75 
76 #endif
77 
messagelist_export.h
QWidget
MESSAGELIST_EXPORT
#define MESSAGELIST_EXPORT
Definition: messagelist_export.h:34
MessageList::Utils::AggregationComboBox
A specialized KComboBox that lists all message list aggregations.
Definition: aggregationcombobox.h:43
MessageList::Core::StorageModel
The QAbstractItemModel based interface that you need to provide for your storage to work with Message...
Definition: storagemodelbase.h:45
KComboBox
MessageList::Utils::AggregationComboBoxPrivate
Definition: aggregationcombobox_p.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messagelist

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