swift
Loading...
Searching...
No Matches
swift::misc::shared_state::IDataLink Class Referenceabstract

Interface that provides a transport mechanism for sharing state. More...

#include <datalink.h>

Inheritance diagram for swift::misc::shared_state::IDataLink:
[legend]

Public Member Functions

 IDataLink ()
 Constructor.
virtual ~IDataLink ()=0
 Destructor.
CDataLinkConnectionWatcher * watcher ()
 Get a connection status watcher.
virtual void publish (const CPassiveMutator *mutator)=0
 Register a mutator with this transport mechanism.
virtual void publish (const CActiveMutator *mutator)=0
 Register a mutator with this transport mechanism.
virtual void subscribe (const CPassiveObserver *observer)=0
 Register an observer with this transport mechanism.
virtual void subscribe (const CActiveObserver *observer)=0
 Register an observer with this transport mechanism.

Protected Member Functions

void setConnectionStatus (bool connected)
 Set the connection status visible through the watcher.

Static Protected Member Functions

static QString getChannelName (const QObject *object)
 Get the channel name for child endpoints of the given object.

Detailed Description

Interface that provides a transport mechanism for sharing state.

Definition at line 67 of file datalink.h.

Constructor & Destructor Documentation

◆ IDataLink()

swift::misc::shared_state::IDataLink::IDataLink ( )

Constructor.

Definition at line 31 of file datalink.cpp.

Member Function Documentation

◆ getChannelName()

QString swift::misc::shared_state::IDataLink::getChannelName ( const QObject * object)
staticprotected

Get the channel name for child endpoints of the given object.

Definition at line 33 of file datalink.cpp.

◆ publish() [1/2]

virtual void swift::misc::shared_state::IDataLink::publish ( const CActiveMutator * mutator)
pure virtual

Register a mutator with this transport mechanism.

Implemented in swift::misc::shared_state::CDataLinkDBus, and swift::misc::shared_state::CDataLinkLocal.

◆ publish() [2/2]

virtual void swift::misc::shared_state::IDataLink::publish ( const CPassiveMutator * mutator)
pure virtual

Register a mutator with this transport mechanism.

Implemented in swift::misc::shared_state::CDataLinkDBus, and swift::misc::shared_state::CDataLinkLocal.

◆ setConnectionStatus()

void swift::misc::shared_state::IDataLink::setConnectionStatus ( bool connected)
inlineprotected

Set the connection status visible through the watcher.

Definition at line 93 of file datalink.h.

◆ subscribe() [1/2]

virtual void swift::misc::shared_state::IDataLink::subscribe ( const CActiveObserver * observer)
pure virtual

Register an observer with this transport mechanism.

Implemented in swift::misc::shared_state::CDataLinkDBus, and swift::misc::shared_state::CDataLinkLocal.

◆ subscribe() [2/2]

virtual void swift::misc::shared_state::IDataLink::subscribe ( const CPassiveObserver * observer)
pure virtual

Register an observer with this transport mechanism.

Implemented in swift::misc::shared_state::CDataLinkDBus, and swift::misc::shared_state::CDataLinkLocal.

◆ watcher()

CDataLinkConnectionWatcher * swift::misc::shared_state::IDataLink::watcher ( )
inline

Get a connection status watcher.

Definition at line 77 of file datalink.h.


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