QRemoteObjectRegistry Class | Qt Remote Objects 5.12.9

- Qt 5.12
- Qt Remote Objects
- C++ Classes
- QRemoteObjectRegistry
- Qt 5.12.9 Reference Documentation

# QRemoteObjectRegistry Class

A class holding information about Source objects available on the Qt Remote Objects network. More...

Header: | #include <QRemoteObjectRegistry>
qmake: | QT += remoteobjects
Inherits: | QRemoteObjectReplica

- List of all members, including inherited members
- Obsolete members

## Properties

- sourceLocations : const QRemoteObjectSourceLocations

- 2 properties inherited from QRemoteObjectReplica
- 1 property inherited from QObject

## Public Functions

virtual | ~QRemoteObjectRegistry() override
QRemoteObjectSourceLocations | sourceLocations() const

- 6 public functions inherited from QRemoteObjectReplica
- 31 public functions inherited from QObject

## Signals

void | remoteObjectAdded(const QRemoteObjectSourceLocation &entry)
void | remoteObjectRemoved(const QRemoteObjectSourceLocation &entry)

- 2 signals inherited from QRemoteObjectReplica
- 2 signals inherited from QObject

## Static Public Members

void | registerMetatypes()
const QMetaObject | staticMetaObject

- 9 static public members inherited from QObject

### Additional Inherited Members

- 1 public slot inherited from QObject
- 9 protected functions inherited from QObject

## Detailed Description

A class holding information about Source objects available on the Qt Remote Objects network.

The Registry is a special Source/Replica pair held by a node itself. It knows about all other Sources available on the network, and simplifies the process of connecting to other nodes.

## Property Documentation

### sourceLocations : const QRemoteObjectSourceLocations

This property holds the set of sources known to the registry.

This property is a QRemoteObjectSourceLocations, which is a typedef for QHash<QString, QUrl>. Each known Source is the QString key, while the url for the host node is the corresponding value for that key in the hash.

Access functions:

QRemoteObjectSourceLocations | sourceLocations() const

## Member Function Documentation

### `[override virtual]` QRemoteObjectRegistry::~QRemoteObjectRegistry()

Destructor for QRemoteObjectRegistry.

### `[static]` void QRemoteObjectRegistry::registerMetatypes()

### `[signal]` void QRemoteObjectRegistry::remoteObjectAdded(const QRemoteObjectSourceLocation &entry)

This signal is emitted whenever a new source location is added to the registry.

entry is a QRemoteObjectSourceLocation, a typedef for QPair<QString, QUrl>.

See also remoteObjectRemoved().

### `[signal]` void QRemoteObjectRegistry::remoteObjectRemoved(const QRemoteObjectSourceLocation &entry)

This signal is emitted whenever a Source location is removed from the Registry.

entry is a QRemoteObjectSourceLocation, a typedef for QPair<QString, QUrl>.

See also remoteObjectAdded().

### QRemoteObjectSourceLocations QRemoteObjectRegistry::sourceLocations() const

Returns a QRemoteObjectSourceLocations object, which includes the name and additional information of all sources known to the registry.

Note: Getter function for property sourceLocations.