Fix wrong connect
[kdepim.git] / importwizard / importwizardkernel.h
blobbced43ef5d841bb12bc9bb8c0d0dbf7a72962b05
1 /*
2 Copyright (c) 2012-2015 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/interfaces/mailinterfaces.h>
22 namespace Akonadi
24 class EntityTreeModel;
25 class EntityMimeTypeFilterModel;
28 namespace MailCommon
30 class FolderCollectionMonitor;
33 class ImportWizardKernel : public QObject, public MailCommon::IKernel, public MailCommon::ISettings
35 public:
36 explicit ImportWizardKernel(QObject *parent = Q_NULLPTR);
38 KIdentityManagement::IdentityManager *identityManager() Q_DECL_OVERRIDE;
39 MessageComposer::MessageSender *msgSender() Q_DECL_OVERRIDE;
41 Akonadi::EntityMimeTypeFilterModel *collectionModel() const Q_DECL_OVERRIDE;
42 KSharedConfig::Ptr config() Q_DECL_OVERRIDE;
43 void syncConfig() Q_DECL_OVERRIDE;
44 MailCommon::JobScheduler *jobScheduler() const Q_DECL_OVERRIDE;
45 Akonadi::ChangeRecorder *folderCollectionMonitor() const Q_DECL_OVERRIDE;
46 void updateSystemTray() Q_DECL_OVERRIDE;
48 qreal closeToQuotaThreshold() Q_DECL_OVERRIDE;
49 bool excludeImportantMailFromExpiry() Q_DECL_OVERRIDE;
50 QStringList customTemplates() Q_DECL_OVERRIDE;
51 Akonadi::Entity::Id lastSelectedFolder() Q_DECL_OVERRIDE;
52 void setLastSelectedFolder(const Akonadi::Entity::Id &col) Q_DECL_OVERRIDE;
53 bool showPopupAfterDnD() Q_DECL_OVERRIDE;
55 private:
56 KIdentityManagement::IdentityManager *mIdentityManager;
57 MessageComposer::MessageSender *mMessageSender;
58 MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
59 Akonadi::EntityTreeModel *mEntityTreeModel;
60 Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
63 #endif