Merge remote-tracking branch 'origin/Applications/16.08'
[kdepim.git] / mboximporter / src / mboximportkernel.h
blob56d3da86963b1bc461bd917944e97c4eaf4cbfcd
1 /*
2 Copyright (C) 2013-2016 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but 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
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef MBOXIMPORTERKERNEL_H
21 #define MBOXIMPORTERKERNEL_H
23 #include <MailCommon/MailInterfaces>
25 namespace Akonadi
27 class EntityTreeModel;
28 class EntityMimeTypeFilterModel;
31 namespace MailCommon
33 class FolderCollectionMonitor;
36 class MBoxImporterKernel : public QObject, public MailCommon::IKernel, public MailCommon::ISettings
38 public:
39 explicit MBoxImporterKernel(QObject *parent = Q_NULLPTR);
41 KIdentityManagement::IdentityManager *identityManager() Q_DECL_OVERRIDE;
42 MessageComposer::MessageSender *msgSender() Q_DECL_OVERRIDE;
44 Akonadi::EntityMimeTypeFilterModel *collectionModel() const Q_DECL_OVERRIDE;
45 KSharedConfig::Ptr config() Q_DECL_OVERRIDE;
46 void syncConfig() Q_DECL_OVERRIDE;
47 MailCommon::JobScheduler *jobScheduler() const Q_DECL_OVERRIDE;
48 Akonadi::ChangeRecorder *folderCollectionMonitor() const Q_DECL_OVERRIDE;
49 void updateSystemTray() Q_DECL_OVERRIDE;
51 qreal closeToQuotaThreshold() Q_DECL_OVERRIDE;
52 bool excludeImportantMailFromExpiry() Q_DECL_OVERRIDE;
53 QStringList customTemplates() Q_DECL_OVERRIDE;
54 Akonadi::Collection::Id lastSelectedFolder() Q_DECL_OVERRIDE;
55 void setLastSelectedFolder(Akonadi::Collection::Id col) Q_DECL_OVERRIDE;
56 bool showPopupAfterDnD() Q_DECL_OVERRIDE;
57 void expunge(Akonadi::Collection::Id col, bool sync) Q_DECL_OVERRIDE;
59 private:
60 KIdentityManagement::IdentityManager *mIdentityManager;
61 MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
62 Akonadi::EntityTreeModel *mEntityTreeModel;
63 Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
66 #endif