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"
22 class QDBusConnection;
29 namespace shared_state::dbus
43 static IHub *create(
bool proxy,
CDBusServer *server,
const QDBusConnection &connection,
44 const QString &service, QObject *parent =
nullptr);
64 IHub(QObject *parent =
nullptr);
Value object encapsulating information identifying a component of a modular distributed swift process...
Abstract interface for the hub in a star topology.
virtual std::pair< QSharedPointer< IDuplex >, QFuture< bool > > getDuplex(const CIdentifier &)=0
Get a duplex object for the calling process.
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.
virtual QFuture< bool > openDuplexAsync(const CIdentifier &client)=0
Create a duplex object and return status via future.
#define SWIFT_MISC_HUB_INTERFACE
DBus interface for sharedstate hub.
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.