Commit afc35beb authored by Laurent Montel's avatar Laurent Montel 😁

USe mamager

parent 984a053b
......@@ -12,6 +12,7 @@ using KPIM::BroadcastStatus;
#include "undostack.h"
#include "kmreaderwin.h"
#include "kmmainwidget.h"
#include "search/checkindexingmanager.h"
#include "libkdepim/recentaddresses.h"
using KPIM::RecentAddresses;
#include "configuredialog/configuredialog.h"
......@@ -227,6 +228,7 @@ KMKernel::KMKernel(QObject *parent) :
CommonKernel->registerSettingsIf(this);
CommonKernel->registerFilterIf(this);
mFolderArchiveManager = new FolderArchiveManager(this);
mCheckIndexingManager = new CheckIndexingManager(this);
}
KMKernel::~KMKernel()
......@@ -1679,6 +1681,7 @@ void KMKernel::slotRunBackgroundTasks() // called regularly by timer
mFolderCollectionMonitor->expireAllFolders(false /*scheduled, not immediate*/, entityTreeModel());
}
mCheckIndexingManager->start(entityTreeModel());
#ifdef DEBUG_SCHEDULER // for debugging, see jobscheduler.h
mBackgroundTasksTimer->start(60 * 1000); // check again in 1 minute
#else
......
......@@ -82,6 +82,7 @@ class KMainWindow;
class KMMainWidget;
class ConfigureDialog;
class FolderArchiveManager;
class CheckIndexingManager;
/**
* @short Central point of coordination in KMail
......@@ -593,6 +594,7 @@ private:
QPointer<MailCommon::KMFilterDialog> mFilterEditDialog;
PimCommon::AutoCorrection *mAutoCorrection;
FolderArchiveManager *mFolderArchiveManager;
CheckIndexingManager *mCheckIndexingManager;
bool mDebugBaloo;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment