octomy::pair::LocalAddressListFacility

A QObject bridge that carries the LocalAddressList of a node through an activity context (§ACF-6, §ACM row 19).

Declared in src/libs/libpair/address/LocalAddressListFacility.hpp
Inherits QObject
Group pair

Detailed description

LocalAddressList derives QList<QHostAddress> and is not a QObject, so it cannot cross the facility seam by itself. The node publishes this bridge as "localAddressList", and a consumer gets the list with localAddressListFromContext().

AssociateFacility carries an Associate the same way.

Member function documentation

LocalAddressListFacility

[explicit] LocalAddressListFacility::LocalAddressListFacility(QObject *parent = nullptr)

Constructs an empty bridge with the parent parent.

list

QSharedPointer<LocalAddressList> LocalAddressListFacility::list() const

Returns the list that the bridge carries, or null.

See also setList().

setList

void LocalAddressListFacility::setList(QSharedPointer<LocalAddressList> list)

Sets the list that the bridge carries to list.

See also list().

QSharedPointer localAddressListFromContext(octomy::activity::ActivityContext *context)

Returns the local address list that context publishes as "localAddressList", or null. Null is a supported answer: a null context, a context that publishes no list, and an empty bridge all give it.