doc fixes found while translating
[kdepim.git] / kmail / collectiontemplatespage.h
blobe886eb50d16aa22e29fe59e48ec0a7b5b7056632
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 COLLECTIONTEMPLATESPAGE_H
20 #define COLLECTIONTEMPLATESPAGE_H
21 #include <akonadi/collectionpropertiespage.h>
23 class KPushButton;
24 class QCheckBox;
25 class TemplatesConfiguration;
27 namespace MailCommon {
28 class FolderCollection;
31 template <typename T> class QSharedPointer;
33 class CollectionTemplatesPage : public Akonadi::CollectionPropertiesPage
35 Q_OBJECT
36 public:
37 explicit CollectionTemplatesPage( QWidget *parent = 0 );
38 ~CollectionTemplatesPage();
40 void load( const Akonadi::Collection & col );
41 void save( Akonadi::Collection & col );
42 bool canHandle( const Akonadi::Collection &collection ) const;
44 public slots:
45 void slotCopyGlobal();
47 protected:
48 void init();
49 private:
50 QCheckBox* mCustom;
51 TemplatesConfiguration* mWidget;
52 KPushButton* mCopyGlobal;
53 uint mIdentity;
54 QSharedPointer<MailCommon::FolderCollection> mFolderCollection;
55 bool mIsLocalSystemFolder;
58 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionTemplatesPageFactory, CollectionTemplatesPage )
60 #endif /* COLLECTIONTEMPLATESPAGE_H */