• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • interfaces
mailinterfaces.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
3  Copyright (c) 2010 Andras Mantia <andras@kdab.com>
4 
5  This program is free software; you can redistribute it and/or modify it
6  under the terms of the GNU General Public License, version 2, as
7  published by the Free Software Foundation.
8 
9  This program is distributed in the hope that it will be useful, but
10  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.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef MAILCOMMON_MAILINTERFACES_H
20 #define MAILCOMMON_MAILINTERFACES_H
21 
22 #include <Akonadi/Collection>
23 
24 #include <KSharedConfig>
25 
26 namespace MessageComposer {
27 class MessageSender;
28 }
29 
30 namespace Akonadi {
31  class ChangeRecorder;
32  class EntityMimeTypeFilterModel;
33 }
34 
35 namespace KPIMIdentities {
36  class IdentityManager;
37 }
38 
39 namespace MailCommon {
40 
41 class FilterDialog;
42 class JobScheduler;
43 
45 class IKernel
46 {
47  public:
53  virtual Akonadi::EntityMimeTypeFilterModel *collectionModel() const = 0;
54 
58  virtual KPIMIdentities::IdentityManager *identityManager() = 0;
59 
60  virtual KSharedConfig::Ptr config() = 0;
61  virtual void syncConfig() = 0;
62  virtual JobScheduler *jobScheduler() const = 0;
63  virtual Akonadi::ChangeRecorder *folderCollectionMonitor() const = 0;
64  virtual void updateSystemTray() = 0;
65  virtual MessageComposer::MessageSender *msgSender() = 0;
66 
67  virtual ~IKernel()
68  {
69  };
70 };
71 
73 class IFilter
74 {
75  public:
76  virtual void openFilterDialog( bool createDummyFilter = true ) = 0;
77  virtual void createFilter( const QByteArray & field, const QString &value ) = 0;
78  virtual ~IFilter()
79  {
80  };
81 };
82 
84 class ISettings
85 {
86  public:
87  virtual bool showPopupAfterDnD() = 0;
88 
89  virtual bool excludeImportantMailFromExpiry() = 0;
90 
91  virtual qreal closeToQuotaThreshold() = 0;
92 
93  virtual Akonadi::Collection::Id lastSelectedFolder() = 0;
94  virtual void setLastSelectedFolder( const Akonadi::Collection::Id &col ) = 0;
95 
96  virtual QStringList customTemplates() = 0;
97 
98  virtual ~ISettings()
99  {
100  };
101 };
102 
103 }
104 
105 #endif
MailCommon::ISettings::~ISettings
virtual ~ISettings()
Definition: mailinterfaces.h:98
MailCommon::IFilter::~IFilter
virtual ~IFilter()
Definition: mailinterfaces.h:78
MailCommon::IKernel::jobScheduler
virtual JobScheduler * jobScheduler() const =0
MailCommon::ISettings::lastSelectedFolder
virtual Akonadi::Collection::Id lastSelectedFolder()=0
MailCommon::IFilter::createFilter
virtual void createFilter(const QByteArray &field, const QString &value)=0
MailCommon::IKernel::updateSystemTray
virtual void updateSystemTray()=0
MailCommon::ISettings::closeToQuotaThreshold
virtual qreal closeToQuotaThreshold()=0
MailCommon::JobScheduler
The unique JobScheduler instance (owned by kmkernel) implements "background processing" of folder ope...
Definition: jobscheduler.h:95
MailCommon::IKernel::~IKernel
virtual ~IKernel()
Definition: mailinterfaces.h:67
MailCommon::IKernel::config
virtual KSharedConfig::Ptr config()=0
MailCommon::ISettings::excludeImportantMailFromExpiry
virtual bool excludeImportantMailFromExpiry()=0
MailCommon::ISettings::setLastSelectedFolder
virtual void setLastSelectedFolder(const Akonadi::Collection::Id &col)=0
MailCommon::ISettings
Interface to access some settings.
Definition: mailinterfaces.h:84
MailCommon::IKernel::collectionModel
virtual Akonadi::EntityMimeTypeFilterModel * collectionModel() const =0
Returns a model of all folders in KMail.
MailCommon::IFilter
Filter related interface.
Definition: mailinterfaces.h:73
MailCommon::ISettings::customTemplates
virtual QStringList customTemplates()=0
MailCommon::IKernel::syncConfig
virtual void syncConfig()=0
MailCommon::ISettings::showPopupAfterDnD
virtual bool showPopupAfterDnD()=0
MailCommon::IFilter::openFilterDialog
virtual void openFilterDialog(bool createDummyFilter=true)=0
MailCommon::IKernel::identityManager
virtual KPIMIdentities::IdentityManager * identityManager()=0
Return the pointer to the identity manager.
MailCommon::IKernel
Generic interface for mail kernels.
Definition: mailinterfaces.h:45
MailCommon::IKernel::folderCollectionMonitor
virtual Akonadi::ChangeRecorder * folderCollectionMonitor() const =0
MailCommon::IKernel::msgSender
virtual MessageComposer::MessageSender * msgSender()=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

Skip menu "mailcommon"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal