File indexing completed on 2024-06-16 04:49:54

0001 /*
0002     SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "connection.h"
0010 
0011 namespace Akonadi
0012 {
0013 namespace Server
0014 {
0015 class NotificationCollector;
0016 class FakeAkonadiServer;
0017 
0018 class FakeConnection : public Connection
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit FakeConnection(quintptr socketDescriptor, FakeAkonadiServer &akonadi);
0024     explicit FakeConnection(AkonadiServer &akonadi);
0025     ~FakeConnection() override;
0026 
0027 public Q_SLOTS:
0028     Akonadi::Server::NotificationCollector *notificationCollector();
0029 
0030 protected Q_SLOTS:
0031     void quit() override;
0032     void init() override;
0033 
0034 private:
0035     Akonadi::Server::NotificationCollector *mNotificationCollector = nullptr;
0036 };
0037 
0038 }
0039 }