Akonadi

bridgeconnection.h
1/***************************************************************************
2 * SPDX-FileCopyrightText: 2010 Volker Krause <vkrause@kde.org> *
3 * *
4 * SPDX-License-Identifier: LGPL-2.0-or-later *
5 ***************************************************************************/
6
7#pragma once
8
9#include <QObject>
10
11class QTcpSocket;
12class QLocalSocket;
13
14class BridgeConnection : public QObject
15{
17
18public:
19 explicit BridgeConnection(QTcpSocket *remoteSocket, QObject *parent = nullptr);
20 ~BridgeConnection() override;
21
22protected Q_SLOTS:
23 virtual void connectLocal() = 0;
24 void doConnects();
25
26protected:
27 QLocalSocket *m_localSocket = nullptr;
28
29private Q_SLOTS:
30 void slotDataAvailable();
31
32private:
33 QTcpSocket *const m_remoteSocket;
34};
35
36class AkonadiBridgeConnection : public BridgeConnection
37{
39
40public:
41 explicit AkonadiBridgeConnection(QTcpSocket *remoteSocket, QObject *parent = nullptr);
42
43protected:
44 void connectLocal() override;
45};
46
47class DBusBridgeConnection : public BridgeConnection
48{
50
51public:
52 explicit DBusBridgeConnection(QTcpSocket *remoteSocket, QObject *parent = nullptr);
53
54protected:
55 void connectLocal() override;
56};
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.