Fix correct signal/slot
[kdepim.git] / mboximporter / mboximportkernel.h
blobb8427964eb5d18d328d11b6fc9288049dbba441d
1 /*
2 Copyright (c) 2013-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
18 #ifndef MBOXIMPORTERKERNEL_H
19 #define MBOXIMPORTERKERNEL_H
21 #include <MailCommon/MailInterfaces>
23 namespace Akonadi
25 class EntityTreeModel;
26 class EntityMimeTypeFilterModel;
29 namespace MailCommon
31 class FolderCollectionMonitor;
34 class MBoxImporterKernel : public QObject, public MailCommon::IKernel, public MailCommon::ISettings
36 public:
37 explicit MBoxImporterKernel(QObject *parent = Q_NULLPTR);
39 KIdentityManagement::IdentityManager *identityManager() Q_DECL_OVERRIDE;
40 MessageComposer::MessageSender *msgSender() Q_DECL_OVERRIDE;
42 Akonadi::EntityMimeTypeFilterModel *collectionModel() const Q_DECL_OVERRIDE;
43 KSharedConfig::Ptr config() Q_DECL_OVERRIDE;
44 void syncConfig() Q_DECL_OVERRIDE;
45 MailCommon::JobScheduler *jobScheduler() const Q_DECL_OVERRIDE;
46 Akonadi::ChangeRecorder *folderCollectionMonitor() const Q_DECL_OVERRIDE;
47 void updateSystemTray() Q_DECL_OVERRIDE;
49 qreal closeToQuotaThreshold() Q_DECL_OVERRIDE;
50 bool excludeImportantMailFromExpiry() Q_DECL_OVERRIDE;
51 QStringList customTemplates() Q_DECL_OVERRIDE;
52 Akonadi::Collection::Id lastSelectedFolder() Q_DECL_OVERRIDE;
53 void setLastSelectedFolder(Akonadi::Collection::Id col) Q_DECL_OVERRIDE;
54 bool showPopupAfterDnD() Q_DECL_OVERRIDE;
56 private:
57 KIdentityManagement::IdentityManager *mIdentityManager;
58 MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
59 Akonadi::EntityTreeModel *mEntityTreeModel;
60 Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
63 #endif