Fix confusing checkbox text due to class reuse
[kdepim.git] / kmail / collectionmaintenancepage.h
blob6e24c067398e3c5bb581ff2e4b3b89a9d3c965ba
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 COLLECTIONMAINTENANCEPAGE_H
20 #define COLLECTIONMAINTENANCEPAGE_H
21 #include <akonadi/collectionpropertiespage.h>
22 #include <akonadi/collection.h>
24 class QCheckBox;
25 class QLabel;
26 class KLineEdit;
27 namespace Akonadi {
28 class CollectionStatistics;
31 class CollectionMaintenancePage : public Akonadi::CollectionPropertiesPage
33 Q_OBJECT
34 public:
35 explicit CollectionMaintenancePage( QWidget *parent = 0 );
37 void load( const Akonadi::Collection & col );
38 void save( Akonadi::Collection & col );
39 protected:
40 void init( const Akonadi::Collection&);
42 protected slots:
43 void updateCollectionStatistic(Akonadi::Collection::Id, const Akonadi::CollectionStatistics& );
45 private:
46 void updateLabel( qint64 nbMail, qint64 nbUnreadMail, qint64 size );
48 private:
49 Akonadi::Collection mCurrentCollection;
50 bool mIsNotAVirtualCollection;
51 QLabel *mFolderSizeLabel;
52 QLabel *mCollectionCount;
53 QLabel *mCollectionUnread;
54 QCheckBox *mIndexingEnabled;
57 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionMaintenancePageFactory, CollectionMaintenancePage )
59 #endif /* COLLECTIONMAINTENANCEPAGE_H */