• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kmail

  • sources
  • kde-4.12
  • kdepim
  • kmail
  • collectionpage
collectionmaintenancepage.h
Go to the documentation of this file.
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>
4 
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.
8 
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.
13 
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
17 */
18 
19 #ifndef COLLECTIONMAINTENANCEPAGE_H
20 #define COLLECTIONMAINTENANCEPAGE_H
21 #include <akonadi/collectionpropertiespage.h>
22 #include <akonadi/collection.h>
23 
24 class QCheckBox;
25 class QLabel;
26 namespace Akonadi {
27 class CollectionStatistics;
28 }
29 
30 class CollectionMaintenancePage : public Akonadi::CollectionPropertiesPage
31 {
32  Q_OBJECT
33 public:
34  explicit CollectionMaintenancePage( QWidget *parent = 0 );
35 
36  void load( const Akonadi::Collection & col );
37  void save( Akonadi::Collection & col );
38 
39 protected:
40  void init( const Akonadi::Collection&);
41 
42 protected slots:
43  void updateCollectionStatistic(Akonadi::Collection::Id, const Akonadi::CollectionStatistics& );
44  void slotReindexing();
45 
46 private:
47  void updateLabel( qint64 nbMail, qint64 nbUnreadMail, qint64 size );
48 
49 private:
50  Akonadi::Collection mCurrentCollection;
51  bool mIsNotAVirtualCollection;
52  QLabel *mFolderSizeLabel;
53  QLabel *mCollectionCount;
54  QLabel *mCollectionUnread;
55  QCheckBox *mIndexingEnabled;
56  QLabel *mLastIndexed;
57 };
58 
59 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionMaintenancePageFactory, CollectionMaintenancePage )
60 
61 #endif /* COLLECTIONMAINTENANCEPAGE_H */
62 
QWidget
CollectionMaintenancePage::CollectionMaintenancePage
CollectionMaintenancePage(QWidget *parent=0)
Definition: collectionmaintenancepage.cpp:49
CollectionMaintenancePage::slotReindexing
void slotReindexing()
Definition: collectionmaintenancepage.cpp:170
CollectionMaintenancePage::save
void save(Akonadi::Collection &col)
Definition: collectionmaintenancepage.cpp:150
CollectionMaintenancePage::updateCollectionStatistic
void updateCollectionStatistic(Akonadi::Collection::Id, const Akonadi::CollectionStatistics &)
Definition: collectionmaintenancepage.cpp:163
CollectionMaintenancePage
Definition: collectionmaintenancepage.h:30
QLabel
CollectionMaintenancePage::load
void load(const Akonadi::Collection &col)
Definition: collectionmaintenancepage.cpp:118
CollectionMaintenancePage::init
void init(const Akonadi::Collection &)
Definition: collectionmaintenancepage.cpp:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • 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