QRemoteObjectRegistry Class
A class holding information about Source objects available on the Qt Remote Objects network 更多...
头文件: | #include <QRemoteObjectRegistry> |
qmake: | QT += remoteobjects |
基类: | QRemoteObjectReplica |
属性
- sourceLocations : const QRemoteObjectSourceLocations
- 2 个属性继承自 QRemoteObjectReplica
- 1 个属性继承自 QObject
公有函数
~QRemoteObjectRegistry() | |
QRemoteObjectSourceLocations | sourceLocations() const |
- 6 个公有函数继承自 QRemoteObjectReplica
- 32 个公有函数继承自 QObject
信号
void | remoteObjectAdded(const QRemoteObjectSourceLocation &entry) |
void | remoteObjectRemoved(const QRemoteObjectSourceLocation &entry) |
- 2 个信号继承自 QRemoteObjectReplica
- 2 个信号继承自 QObject
其他继承的成员
- 1 个公有槽函数继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
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.
属性
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.
访问函数:
QRemoteObjectSourceLocations | sourceLocations() const |
成员函数
QRemoteObjectRegistry::~QRemoteObjectRegistry()
Destructor for QRemoteObjectRegistry.
[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>.
参见 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>.
参见 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.