~ubuntu-branches/ubuntu/raring/kdepim/raring-proposed

« back to all changes in this revision

Viewing changes to kmailcvt/kmailcvtkernel.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-07 07:56:38 UTC
  • mfrom: (0.2.27)
  • Revision ID: package-import@ubuntu.com-20120607075638-0luhdq11z7sgvs4m
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (c) 2012 Montel Laurent <montel@kde.org>
 
3
 
 
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.
 
7
 
 
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.
 
12
 
 
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
 
16
*/
 
17
 
 
18
#ifndef KMAILCVTKERNEL_H
 
19
#define KMAILCVTKERNEL_H
 
20
 
 
21
#include <mailcommon/mailinterfaces.h>
 
22
 
 
23
namespace Akonadi {
 
24
class EntityTreeModel;
 
25
class EntityMimeTypeFilterModel;
 
26
}
 
27
 
 
28
namespace MailCommon {
 
29
class FolderCollectionMonitor;
 
30
}
 
31
 
 
32
class KMailCVTKernel : public QObject, public MailCommon::IKernel, public MailCommon::ISettings
 
33
{
 
34
  public:
 
35
    explicit  KMailCVTKernel( QObject *parent = 0 );
 
36
 
 
37
    KPIMIdentities::IdentityManager *identityManager();
 
38
    MessageSender *msgSender();
 
39
 
 
40
    Akonadi::EntityMimeTypeFilterModel *collectionModel() const;
 
41
    KSharedConfig::Ptr config();
 
42
    void syncConfig();
 
43
    MailCommon::JobScheduler* jobScheduler() const;
 
44
    Akonadi::ChangeRecorder *folderCollectionMonitor() const;
 
45
    void updateSystemTray();
 
46
 
 
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();
 
53
    
 
54
 
 
55
  private:
 
56
    KPIMIdentities::IdentityManager *mIdentityManager;
 
57
    MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
 
58
    Akonadi::EntityTreeModel *mEntityTreeModel;
 
59
    Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
 
60
};
 
61
 
 
62
#endif