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

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • collectionpage
collectionexpirypage.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2  Copyright (c) 2009 Montel Laurent <montel@kde.org>
3  Copyright (c) 2013 Jonathan Marten <jjm@keelhaul.me.uk>
4 
5  This program 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  This program 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 MAILCOMMON_COLLECTIONEXPIRYPAGE_H
20 #define MAILCOMMON_COLLECTIONEXPIRYPAGE_H
21 
22 #include "mailcommon_export.h"
23 
24 #include <Akonadi/Collection>
25 #include <Akonadi/CollectionPropertiesPage>
26 
27 class KIntSpinBox;
28 class KJob;
29 
30 class QCheckBox;
31 class QPushButton;
32 class QRadioButton;
33 
34 namespace MailCommon {
35 
36 class FolderRequester;
37 
38 class MAILCOMMON_EXPORT CollectionExpiryPage : public Akonadi::CollectionPropertiesPage
39 {
40  Q_OBJECT
41 
42 public:
43  explicit CollectionExpiryPage( QWidget *parent = 0 );
44  ~CollectionExpiryPage();
45 
46  bool canHandle( const Akonadi::Collection &col ) const;
47  void load( const Akonadi::Collection &collection );
48  void save( Akonadi::Collection &collection );
49 
50 protected:
51  void init();
52 
53 protected slots:
54  void slotUpdateControls();
55  void slotCollectionModified(KJob* job);
56  void slotChanged();
57  void slotSaveAndExpire();
58 
59 private:
60  void saveAndExpire( Akonadi::Collection &collection, bool saveSettings, bool _expirenow );
61 
62 private:
63  QCheckBox *expireReadMailCB;
64  KIntSpinBox *expireReadMailSB;
65  QCheckBox *expireUnreadMailCB;
66  KIntSpinBox *expireUnreadMailSB;
67  QRadioButton *moveToRB;
68  FolderRequester *folderSelector;
69  QRadioButton *deletePermanentlyRB;
70  QPushButton *expireNowPB;
71 
72  Akonadi::Collection mCollection;
73  bool mChanged;
74 };
75 
76 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionExpiryPageFactory, CollectionExpiryPage )
77 
78 }
79 
80 #endif
QWidget
MailCommon::CollectionExpiryPage
Definition: collectionexpirypage.h:38
mailcommon_export.h
MailCommon::FolderRequester
A widget that contains a KLineEdit which shows the current folder and a button that fires a FolderSel...
Definition: folderrequester.h:59
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

Skip menu "mailcommon"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

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