• 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
themecombobox.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_THEMECOMBOBOX_H__
20 #define __MESSAGELIST_UTILS_THEMECOMBOBOX_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 StorageModel;
32 class Theme;
33 
34 } // namespace Core
35 
36 namespace Utils
37 {
38 
39 class ThemeComboBoxPrivate;
40 
44 class MESSAGELIST_EXPORT ThemeComboBox : public KComboBox
45 {
46  Q_OBJECT
47 
48 public:
49  explicit ThemeComboBox( QWidget * parent);
50  ~ThemeComboBox();
51 
52  QString currentTheme() const;
53 
54  void writeDefaultConfig() const;
55 
56  void writeStorageModelConfig( MessageList::Core::StorageModel *storageModel, bool isPrivateSetting ) const;
57  void writeStorageModelConfig( const Akonadi::Collection &col, bool isPrivateSetting ) const;
58  void writeStorageModelConfig( const QString &id, bool isPrivateSetting )const;
59 
60 
61  void readStorageModelConfig( const Akonadi::Collection& col, bool &isPrivateSetting );
62  void readStorageModelConfig( MessageList::Core::StorageModel *storageModel, bool &isPrivateSetting );
63 
64 public Q_SLOTS:
65  void selectDefault();
66 
67 private:
68  Q_PRIVATE_SLOT(d, void slotLoadThemes())
69  ThemeComboBoxPrivate * const d;
70 };
71 
72 } // namespace Utils
73 
74 } // namespace MessageList
75 
76 #endif
messagelist_export.h
QWidget
MessageList::Utils::ThemeComboBoxPrivate
Definition: themecombobox_p.h:38
MESSAGELIST_EXPORT
#define MESSAGELIST_EXPORT
Definition: messagelist_export.h:34
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::ThemeComboBox
A specialized KComboBox that lists all message list themes.
Definition: themecombobox.h:44
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