• 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
collectiontemplatespage.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 COLLECTIONTEMPLATESPAGE_H
20 #define COLLECTIONTEMPLATESPAGE_H
21 #include <akonadi/collectionpropertiespage.h>
22 
23 class QCheckBox;
24 namespace TemplateParser {
25 class TemplatesConfiguration;
26 }
27 
28 template <typename T> class QSharedPointer;
29 
30 class CollectionTemplatesPage : public Akonadi::CollectionPropertiesPage
31 {
32  Q_OBJECT
33 public:
34  explicit CollectionTemplatesPage( QWidget *parent = 0 );
35  ~CollectionTemplatesPage();
36 
37  void load( const Akonadi::Collection & col );
38  void save( Akonadi::Collection & col );
39  bool canHandle( const Akonadi::Collection &collection ) const;
40 
41 public slots:
42  void slotCopyGlobal();
43 
44 private Q_SLOTS:
45  void slotChanged();
46 
47 private:
48  void init();
49  QCheckBox* mCustom;
50  TemplateParser::TemplatesConfiguration* mWidget;
51  uint mIdentity;
52  QString mCollectionId;
53  bool mIsLocalSystemFolder;
54  bool mChanged;
55 };
56 
57 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionTemplatesPageFactory, CollectionTemplatesPage )
58 
59 #endif /* COLLECTIONTEMPLATESPAGE_H */
60 
QSharedPointer
Definition: collectionmailinglistpage.h:34
CollectionTemplatesPage
Definition: collectiontemplatespage.h:30
CollectionTemplatesPage::canHandle
bool canHandle(const Akonadi::Collection &collection) const
Definition: collectiontemplatespage.cpp:47
QWidget
CollectionTemplatesPage::slotCopyGlobal
void slotCopyGlobal()
Definition: collectiontemplatespage.cpp:124
CollectionTemplatesPage::CollectionTemplatesPage
CollectionTemplatesPage(QWidget *parent=0)
Definition: collectiontemplatespage.cpp:35
CollectionTemplatesPage::~CollectionTemplatesPage
~CollectionTemplatesPage()
Definition: collectiontemplatespage.cpp:43
CollectionTemplatesPage::save
void save(Akonadi::Collection &col)
Definition: collectiontemplatespage.cpp:112
CollectionTemplatesPage::load
void load(const Akonadi::Collection &col)
Definition: collectiontemplatespage.cpp:94
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