swift
Loading...
Searching...
No Matches
src
misc
sharedstate
dbus
hub.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2020 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6
#include "
misc/sharedstate/dbus/hub.h
"
7
8
#include <QDBusConnection>
9
10
#include "
misc/sharedstate/dbus/hubimpl.h
"
11
#include "
misc/sharedstate/dbus/hubproxy.h
"
12
13
namespace
swift::misc::shared_state::dbus
14
{
15
IHub::IHub
(
QObject
*
parent
) :
QObject
(
parent
) {}
16
17
IHub
*
IHub::create
(
bool
proxy,
CDBusServer
*server,
const
QDBusConnection
&connection,
const
QString
&service,
18
QObject
*
parent
)
19
{
20
if
(proxy)
21
{
22
return
new
CHubProxy
(connection, service,
parent
);
23
}
24
else
25
{
26
return
new
CHub
(server,
parent
);
27
}
28
}
29
}
// namespace swift::misc::shared_state::dbus
swift::misc::CDBusServer
Custom DBusServer.
Definition
dbusserver.h:34
swift::misc::shared_state::dbus::CHub
Server side implementation of IHub.
Definition
hubimpl.h:27
swift::misc::shared_state::dbus::CHubProxy
Client side implementation of IHub.
Definition
hubproxy.h:23
swift::misc::shared_state::dbus::IHub::create
static IHub * create(bool proxy, CDBusServer *server, const QDBusConnection &connection, const QString &service, QObject *parent=nullptr)
Construct a new hub.
Definition
hub.cpp:17
swift::misc::shared_state::dbus::IHub::IHub
IHub(QObject *parent=nullptr)
Constructor.
Definition
hub.cpp:15
hub.h
hubimpl.h
hubproxy.h
QDBusConnection
QObject::QObject
QObject(QObject *parent)
QObject::parent
QObject * parent() const const
QString
Generated on
for swift by
1.15.0