File indexing completed on 2024-11-10 04:40:11

0001 /*
0002     SPDX-FileCopyrightText: 2009 Stephen Kelly <steveire@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "fakemonitor.h"
0008 #include "changerecorder_p.h"
0009 
0010 #include "entitycache_p.h"
0011 
0012 #include <QMetaMethod>
0013 
0014 using namespace Akonadi;
0015 
0016 class FakeMonitorPrivate : public ChangeRecorderPrivate
0017 {
0018     Q_DECLARE_PUBLIC(FakeMonitor)
0019 public:
0020     explicit FakeMonitorPrivate(FakeMonitor *monitor)
0021         : ChangeRecorderPrivate(nullptr, monitor)
0022     {
0023     }
0024 
0025     bool connectToNotificationManager() override
0026     {
0027         // Do nothing. This monitor should not connect to the notification manager.
0028         return true;
0029     }
0030 };
0031 
0032 FakeMonitor::FakeMonitor(QObject *parent)
0033     : ChangeRecorder(new FakeMonitorPrivate(this), parent)
0034 {
0035 }
0036 
0037 #include "moc_fakemonitor.cpp"