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

Continue to split unity support

parent 51c05119
......@@ -18,6 +18,8 @@
*/
#include "unityservicemanager.h"
#include "kmkernel.h"
#include <MailCommon/MailKernel>
#include <QDBusConnection>
#include <QDBusMessage>
......@@ -27,6 +29,10 @@
#include <QDBusConnectionInterface>
#include <QApplication>
#include <AkonadiCore/ChangeRecorder>
#include <AkonadiCore/EntityTreeModel>
#include <AkonadiCore/EntityMimeTypeFilterModel>
using namespace KMail;
UnityServiceManager::UnityServiceManager(QObject *parent)
......@@ -34,6 +40,14 @@ UnityServiceManager::UnityServiceManager(QObject *parent)
, mUnityServiceWatcher(new QDBusServiceWatcher(this))
, mCount(0)
{
#if 0
connect(kmkernel->folderCollectionMonitor(), &Akonadi::Monitor::collectionStatisticsChanged, this, &UnityServiceManager::slotCollectionStatisticsChanged);
connect(kmkernel->folderCollectionMonitor(), &Akonadi::Monitor::collectionAdded, this, &UnityServiceManager::initListOfCollection);
connect(kmkernel->folderCollectionMonitor(), &Akonadi::Monitor::collectionRemoved, this, &UnityServiceManager::initListOfCollection);
connect(kmkernel->folderCollectionMonitor(), &Akonadi::Monitor::collectionSubscribed, this, &UnityServiceManager::initListOfCollection);
connect(kmkernel->folderCollectionMonitor(), &Akonadi::Monitor::collectionUnsubscribed, this, &UnityServiceManager::initListOfCollection);
#endif
initUnity();
}
......
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