6#ifndef SWIFT_MISC_SHAREDSTATE_DBUS_HUB_H
7#define SWIFT_MISC_SHAREDSTATE_DBUS_HUB_H
11#include <QSharedPointer>
17#define SWIFT_MISC_HUB_INTERFACE "org.swift_project.misc.sharedstate.hub"
20#define SWIFT_MISC_HUB_PATH "/org/swift_project/hub"
29 namespace shared_state::dbus
Value object encapsulating information identifying a component of a modular distributed swift process...
virtual QFuture< bool > openDuplexAsync(const CIdentifier &client)=0
Create a duplex object and return status via future.
virtual bool openDuplex(const swift::misc::CIdentifier &client)=0
Create a duplex object for the identified process.
virtual bool isConnected() const =0
Is connected?
virtual void closeDuplex(const swift::misc::CIdentifier &client)=0
Destroy the duplex object for the identified process.
static IHub * create(bool proxy, CDBusServer *server, const QDBusConnection &connection, const QString &service, QObject *parent=nullptr)
Construct a new hub.
virtual std::pair< QSharedPointer< IDuplex >, QFuture< bool > > getDuplex(const CIdentifier &)=0
Get a duplex object for the calling process.
IHub(QObject *parent=nullptr)
Constructor.
#define SWIFT_MISC_HUB_INTERFACE
DBus interface for sharedstate hub.
Free functions in swift::misc.
QObject * parent() const const
#define SWIFT_MISC_EXPORT
Export a class or function from the library.