swift
Public Member Functions | List of all members
swift::misc::shared_state::dbus::CHub Class Referencefinal

Server side implementation of IHub. More...

Inheritance diagram for swift::misc::shared_state::dbus::CHub:
[legend]

Public Member Functions

 CHub (CDBusServer *server, QObject *parent=nullptr)
 Constructor.
 
virtual ~CHub ()
 Destructor.
 
const auto & clients () const
 Returns a range containing all duplex objects.
 

Interface implementations

virtual bool isConnected () const
 Create a duplex object for the identified process. More...
 
virtual std::pair< QSharedPointer< IDuplex >, QFuture< bool > > getDuplex (const CIdentifier &)
 Create a duplex object for the identified process. More...
 
virtual bool openDuplex (const swift::misc::CIdentifier &client)
 Create a duplex object for the identified process. More...
 
virtual void closeDuplex (const swift::misc::CIdentifier &client)
 Destroy the duplex object for the identified process. More...
 
virtual QFuture< bool > openDuplexAsync (const CIdentifier &client)
 Create a duplex object for the identified process. More...
 

Additional Inherited Members

- Public Slots inherited from swift::misc::shared_state::dbus::IHub
virtual bool openDuplex (const swift::misc::CIdentifier &client)=0
 Create a duplex object for the identified process.
 
virtual void closeDuplex (const swift::misc::CIdentifier &client)=0
 Destroy the duplex object for the identified process.
 
- Static Public Member Functions inherited from swift::misc::shared_state::dbus::IHub
static IHubcreate (bool proxy, CDBusServer *server, const QDBusConnection &connection, const QString &service, QObject *parent=nullptr)
 Construct a new hub.
 
- Protected Member Functions inherited from swift::misc::shared_state::dbus::IHub
 IHub (QObject *parent=nullptr)
 Constructor.
 

Detailed Description

Server side implementation of IHub.

Maintains a collection of CDuplex objects.

Definition at line 26 of file hubimpl.h.

Member Function Documentation

◆ closeDuplex

void swift::misc::shared_state::dbus::CHub::closeDuplex ( const swift::misc::CIdentifier client)
virtualslot

Destroy the duplex object for the identified process.

Definition at line 34 of file hubimpl.cpp.

◆ getDuplex()

std::pair< QSharedPointer< IDuplex >, QFuture< bool > > swift::misc::shared_state::dbus::CHub::getDuplex ( const CIdentifier identifier)
virtual

Create a duplex object for the identified process.

Implements swift::misc::shared_state::dbus::IHub.

Definition at line 19 of file hubimpl.cpp.

◆ isConnected()

virtual bool swift::misc::shared_state::dbus::CHub::isConnected ( ) const
inlinevirtual

Create a duplex object for the identified process.

Implements swift::misc::shared_state::dbus::IHub.

Definition at line 43 of file hubimpl.h.

◆ openDuplex

bool swift::misc::shared_state::dbus::CHub::openDuplex ( const swift::misc::CIdentifier client)
virtualslot

Create a duplex object for the identified process.

Definition at line 25 of file hubimpl.cpp.

◆ openDuplexAsync()

QFuture< bool > swift::misc::shared_state::dbus::CHub::openDuplexAsync ( const CIdentifier client)
protectedvirtual

Create a duplex object for the identified process.

Implements swift::misc::shared_state::dbus::IHub.

Definition at line 41 of file hubimpl.cpp.


The documentation for this class was generated from the following files: