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
18
#ifndef KMAILCVTKERNEL_H
19
#define KMAILCVTKERNEL_H
21
#include <mailcommon/mailinterfaces.h>
24
class EntityTreeModel;
25
class EntityMimeTypeFilterModel;
28
namespace MailCommon {
29
class FolderCollectionMonitor;
32
class KMailCVTKernel : public QObject, public MailCommon::IKernel, public MailCommon::ISettings
35
explicit KMailCVTKernel( QObject *parent = 0 );
37
KPIMIdentities::IdentityManager *identityManager();
38
MessageSender *msgSender();
40
Akonadi::EntityMimeTypeFilterModel *collectionModel() const;
41
KSharedConfig::Ptr config();
43
MailCommon::JobScheduler* jobScheduler() const;
44
Akonadi::ChangeRecorder *folderCollectionMonitor() const;
45
void updateSystemTray();
47
qreal closeToQuotaThreshold();
48
bool excludeImportantMailFromExpiry();
49
QStringList customTemplates();
50
Akonadi::Entity::Id lastSelectedFolder();
51
void setLastSelectedFolder(const Akonadi::Entity::Id& col);
52
bool showPopupAfterDnD();
56
KPIMIdentities::IdentityManager *mIdentityManager;
57
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
58
Akonadi::EntityTreeModel *mEntityTreeModel;
59
Akonadi::EntityMimeTypeFilterModel *mCollectionModel;