fix Messages.sh after yesterday change in extract-messages.sh
[kdepim.git] / kmail / collectiongeneralpage.h
blobf55477d2b47443679bc2d906d496a37e697ba4d7
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>
24 class KComboBox;
25 class QCheckBox;
26 class KLineEdit;
27 class FolderCollection;
28 template <typename T> class QSharedPointer;
30 namespace KPIMIdentities {
31 class IdentityCombo;
34 class CollectionGeneralPage : public Akonadi::CollectionPropertiesPage
36 Q_OBJECT
37 public:
38 explicit CollectionGeneralPage( QWidget *parent = 0 );
39 ~CollectionGeneralPage();
41 void load( const Akonadi::Collection & col );
42 void save( Akonadi::Collection & col );
44 enum FolderContentsType
46 ContentsTypeMail = 0,
47 ContentsTypeCalendar,
48 ContentsTypeContact,
49 ContentsTypeNote,
50 ContentsTypeTask,
51 ContentsTypeJournal,
52 ContentsTypeLast = ContentsTypeJournal
55 enum IncidencesFor {
56 IncForNobody,
57 IncForAdmins,
58 IncForReaders
61 protected:
62 void init(const Akonadi::Collection&);
64 private slots:
65 void slotIdentityCheckboxChanged();
66 private:
67 KComboBox *mContentsComboBox;
68 KComboBox *mIncidencesForComboBox;
69 #if 0
70 QCheckBox *mAlarmsBlockedCheckBox;
71 #endif
72 QCheckBox *mSharedSeenFlagsCheckBox;
73 #if 0
74 QCheckBox *mNewMailCheckBox;
75 #endif
76 QCheckBox *mNotifyOnNewMailCheckBox;
77 QCheckBox *mKeepRepliesInSameFolderCheckBox;
78 QCheckBox *mHideInSelectionDialogCheckBox;
79 QCheckBox *mUseDefaultIdentityCheckBox;
80 KLineEdit *mNameEdit;
81 KPIMIdentities::IdentityCombo *mIdentityComboBox;
82 QSharedPointer<FolderCollection> mFolderCollection;
83 bool mIsLocalSystemFolder;
84 bool mIsResourceFolder;
85 bool mIsImapFolder;
90 #endif /* COLLECTIONGENERALPAGE_H */