doc fixes found while translating
[kdepim.git] / kmail / collectionviewpage.h
blobacd7551923634e882a1b7b7855f7409aa9aa74c7
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>
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.
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.
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
19 #ifndef COLLECTIONVIEWPAGE_H
20 #define COLLECTIONVIEWPAGE_H
22 #include <akonadi/collectionpropertiespage.h>
23 #include <akonadi/collection.h>
24 class QCheckBox;
25 class QLabel;
26 class KComboBox;
27 class KIconButton;
29 namespace MailCommon {
30 class FolderCollection;
33 template <typename T> class QSharedPointer;
35 namespace MessageList {
36 namespace Utils {
37 class AggregationComboBox;
38 class ThemeComboBox;
42 class CollectionViewPage : public Akonadi::CollectionPropertiesPage
44 Q_OBJECT
45 public:
46 explicit CollectionViewPage( QWidget *parent = 0 );
47 ~CollectionViewPage();
49 void load( const Akonadi::Collection & col );
50 void save( Akonadi::Collection & col );
51 protected:
52 void init(const Akonadi::Collection&);
53 public slots:
54 void slotChangeIcon( const QString & icon );
55 void slotAggregationCheckboxChanged();
56 void slotThemeCheckboxChanged();
57 void slotSelectFolderAggregation();
58 void slotSelectFolderTheme();
59 private:
61 bool mIsLocalSystemFolder;
62 QCheckBox *mIconsCheckBox;
63 QLabel *mNormalIconLabel;
64 KIconButton *mNormalIconButton;
65 QLabel *mUnreadIconLabel;
66 KIconButton *mUnreadIconButton;
67 KComboBox *mShowSenderReceiverComboBox;
68 QCheckBox *mUseDefaultAggregationCheckBox;
69 MessageList::Utils::AggregationComboBox *mAggregationComboBox;
70 QCheckBox *mUseDefaultThemeCheckBox;
71 MessageList::Utils::ThemeComboBox *mThemeComboBox;
72 QSharedPointer<MailCommon::FolderCollection> mFolderCollection;
73 Akonadi::Collection mCurrentCollection;
74 int mShowSenderReceiverValue;
77 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionViewPageFactory, CollectionViewPage )
79 #endif /* COLLECTIONVIEWPAGE_H */