You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.6 KiB
48 lines
1.6 KiB
#ifndef DUMMYKERNEL_H |
|
#define DUMMYKERNEL_H |
|
|
|
#include <MailCommon/MailInterfaces> |
|
|
|
namespace Akonadi |
|
{ |
|
class EntityTreeModel; |
|
class EntityMimeTypeFilterModel; |
|
} |
|
|
|
namespace MailCommon |
|
{ |
|
class FolderCollectionMonitor; |
|
} |
|
|
|
class DummyKernel : public QObject, public MailCommon::IKernel, public MailCommon::ISettings |
|
{ |
|
public: |
|
explicit DummyKernel(QObject *parent = nullptr); |
|
|
|
KIdentityManagement::IdentityManager *identityManager() Q_DECL_OVERRIDE; |
|
MessageComposer::MessageSender *msgSender() Q_DECL_OVERRIDE; |
|
|
|
Akonadi::EntityMimeTypeFilterModel *collectionModel() const Q_DECL_OVERRIDE; |
|
KSharedConfig::Ptr config() Q_DECL_OVERRIDE; |
|
void syncConfig() Q_DECL_OVERRIDE; |
|
MailCommon::JobScheduler *jobScheduler() const Q_DECL_OVERRIDE; |
|
Akonadi::ChangeRecorder *folderCollectionMonitor() const Q_DECL_OVERRIDE; |
|
void updateSystemTray() Q_DECL_OVERRIDE; |
|
|
|
qreal closeToQuotaThreshold() Q_DECL_OVERRIDE; |
|
bool excludeImportantMailFromExpiry() Q_DECL_OVERRIDE; |
|
QStringList customTemplates() Q_DECL_OVERRIDE; |
|
Akonadi::Collection::Id lastSelectedFolder() Q_DECL_OVERRIDE; |
|
void setLastSelectedFolder(Akonadi::Collection::Id col) Q_DECL_OVERRIDE; |
|
bool showPopupAfterDnD() Q_DECL_OVERRIDE; |
|
void expunge(Akonadi::Collection::Id id, bool sync) Q_DECL_OVERRIDE; |
|
|
|
private: |
|
KIdentityManagement::IdentityManager *mIdentityManager; |
|
MessageComposer::MessageSender *mMessageSender; |
|
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor; |
|
Akonadi::EntityTreeModel *mEntityTreeModel; |
|
Akonadi::EntityMimeTypeFilterModel *mCollectionModel; |
|
}; |
|
|
|
#endif
|
|
|