Use imapresourcemanager

wilder-work
Montel Laurent 11 years ago
parent 316bd1075b
commit a4b557ded8
  1. 7
      kmkernel.cpp
  2. 3
      kmkernel.h

@ -114,6 +114,7 @@ using KMail::MailServiceImpl;
#include "foldercollectionmonitor.h"
#include "imapresourcesettings.h"
#include "util.h"
#include "pimcommon/util/imapresourcemanager.h"
#include "mailcommon/kernel/mailkernel.h"
#include "searchdialog/searchdescriptionattribute.h"
@ -143,6 +144,7 @@ KMKernel::KMKernel (QObject *parent) :
KMail::Util::migrateFromKMail1();
kDebug() << "Starting up...";
mImapResourceManager = new PimCommon::ImapResourceManager(this);
mySelf = this;
the_firstInstance = true;
@ -2082,6 +2084,11 @@ PimCommon::StorageServiceManager *KMKernel::storageServiceManager() const
return mStorageManager;
}
PimCommon::ImapResourceManager *KMKernel::imapResourceManager() const
{
return mImapResourceManager;
}
bool KMKernel::allowToDebugBalooSupport() const
{
return mDebugBaloo;

@ -44,6 +44,7 @@ class MessageSender;
namespace PimCommon {
class AutoCorrection;
class StorageServiceManager;
class ImapResourceManager;
}
/** The KMail namespace contains classes used for KMail.
@ -426,6 +427,7 @@ public:
void toggleSystemTray();
FolderArchiveManager *folderArchiveManager() const;
PimCommon::StorageServiceManager *storageServiceManager() const;
PimCommon::ImapResourceManager *imapResourceManager() const;
bool allowToDebugBalooSupport() const;
@ -533,6 +535,7 @@ private:
PimCommon::AutoCorrection *mAutoCorrection;
FolderArchiveManager *mFolderArchiveManager;
PimCommon::StorageServiceManager *mStorageManager;
PimCommon::ImapResourceManager *mImapResourceManager;
bool mDebugBaloo;
};

Loading…
Cancel
Save