change KTTSD to Jovie
[kdepim.git] / kmail / collectiontemplatespage.h
blob0693d7cc293d88e909eb75d2da1785b1c293763d
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;
26 class FolderCollection;
28 template <typename T> class QSharedPointer;
30 class CollectionTemplatesPage : public Akonadi::CollectionPropertiesPage
32 Q_OBJECT
33 public:
34 explicit CollectionTemplatesPage( QWidget *parent = 0 );
35 ~CollectionTemplatesPage();
37 void load( const Akonadi::Collection & col );
38 void save( Akonadi::Collection & col );
39 bool canHandle( const Akonadi::Collection &collection ) const;
41 public slots:
42 void slotCopyGlobal();
44 protected:
45 void init();
46 private:
47 QCheckBox* mCustom;
48 TemplatesConfiguration* mWidget;
49 KPushButton* mCopyGlobal;
50 uint mIdentity;
51 QSharedPointer<FolderCollection> mFolderCollection;
52 bool mIsLocalSystemFolder;
55 #endif /* COLLECTIONTEMPLATESPAGE_H */