Framework for looking up contacts directly in nepomuk in addition to going through...
[kdepim.git] / importwizard / importwizardkernel.h
blob6dc3f93b97a55daaf1a49d8ae3f5eef8bef76499
1 /*
2 Copyright (c) 2012 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 #ifndef IMPORTWIZARDKERNEL_H
18 #define IMPORTWIZARDKERNEL_H
20 #include <mailcommon/mailinterfaces.h>
22 namespace Akonadi {
23 class EntityTreeModel;
24 class EntityMimeTypeFilterModel;
27 namespace MailCommon {
28 class FolderCollectionMonitor;
31 class ImportWizardKernel : public QObject, public MailCommon::IKernel, public MailCommon::ISettings
33 public:
34 ImportWizardKernel( QObject *parent = 0 );
36 virtual KPIMIdentities::IdentityManager *identityManager();
37 virtual MessageSender *msgSender();
39 virtual Akonadi::EntityMimeTypeFilterModel *collectionModel() const;
40 virtual KSharedConfig::Ptr config();
41 virtual void syncConfig();
42 virtual MailCommon::JobScheduler* jobScheduler() const;
43 virtual Akonadi::ChangeRecorder *folderCollectionMonitor() const;
44 virtual void updateSystemTray();
46 virtual qreal closeToQuotaThreshold();
47 virtual bool excludeImportantMailFromExpiry();
48 virtual QStringList customTemplates();
49 virtual Akonadi::Entity::Id lastSelectedFolder();
50 virtual void setLastSelectedFolder(const Akonadi::Entity::Id& col);
51 virtual bool showPopupAfterDnD();
54 private:
55 KPIMIdentities::IdentityManager *mIdentityManager;
56 MessageSender *mMessageSender;
57 MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
58 Akonadi::EntityTreeModel *mEntityTreeModel;
59 Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
62 #endif