QRemoteObjectRegistry 类

类保持的信息有关 objects available on the Qt Remote Objects network 更多...

头: #include <QRemoteObjectRegistry>
qmake: QT += remoteobjects
继承: QRemoteObjectReplica

特性

公共函数

~QRemoteObjectRegistry ()
QRemoteObjectSourceLocations sourceLocations () const

信号

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

静态公共成员

void registerMetatypes ()

额外继承成员

详细描述

类保持的信息有关 objects available on the Qt Remote Objects network

Registry (注册) 是特殊 Source/Replica (源/复本) 对保持通过 node 本身。它知道关于所有其它 在网络中是否可用,并简化连接过程对于其它 node s.

特性文档编制

sourceLocations : const QRemoteObjectSourceLocations

此特性保持注册已知的一组源。

此特性是 QRemoteObjectSourceLocations,其是 typedef 对于 QHash < QString , QUrl >。每个已知 QString 键,当主机节点的 URL 是该键哈希的相应值。

访问函数:

QRemoteObjectSourceLocations sourceLocations () const

成员函数文档编制

QRemoteObjectRegistry:: ~QRemoteObjectRegistry ()

析构函数为 QRemoteObjectRegistry .

[static] void QRemoteObjectRegistry:: registerMetatypes ()

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

此信号被发射每当向 Registry (注册) 添加新的 Source (源) 位置时。

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

另请参阅 remoteObjectRemoved ().

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

此信号被发射每当从 Registry (注册) 移除 Source (源) 位置时。

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

另请参阅 remoteObjectAdded ().

QRemoteObjectSourceLocations QRemoteObjectRegistry:: sourceLocations () const

返回 QRemoteObjectSourceLocations 对象,其包括注册已知的所有源的名称和额外信息。

注意: Getter 函数对于特性 sourceLocations .