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
20 #ifndef COLLECTIONGENERALPAGE_H
21 #define COLLECTIONGENERALPAGE_H
23 #include <akonadi/collectionpropertiespage.h>
27 class FolderCollection
;
28 template <typename T
> class QSharedPointer
;
30 namespace KPIMIdentities
{
34 class CollectionGeneralPage
: public Akonadi::CollectionPropertiesPage
38 explicit CollectionGeneralPage( QWidget
*parent
= 0 );
39 ~CollectionGeneralPage();
41 void load( const Akonadi::Collection
& col
);
42 void save( Akonadi::Collection
& col
);
44 enum FolderContentsType
52 ContentsTypeLast
= ContentsTypeJournal
62 void init(const Akonadi::Collection
&);
65 void slotIdentityCheckboxChanged();
67 KComboBox
*mContentsComboBox
;
68 KComboBox
*mIncidencesForComboBox
;
70 QCheckBox
*mAlarmsBlockedCheckBox
;
72 QCheckBox
*mSharedSeenFlagsCheckBox
;
74 QCheckBox
*mNewMailCheckBox
;
76 QCheckBox
*mNotifyOnNewMailCheckBox
;
77 QCheckBox
*mKeepRepliesInSameFolderCheckBox
;
78 QCheckBox
*mHideInSelectionDialogCheckBox
;
79 QCheckBox
*mUseDefaultIdentityCheckBox
;
81 KPIMIdentities::IdentityCombo
*mIdentityComboBox
;
82 QSharedPointer
<FolderCollection
> mFolderCollection
;
83 bool mIsLocalSystemFolder
;
84 bool mIsResourceFolder
;
90 #endif /* COLLECTIONGENERALPAGE_H */