类保持的信息有关 源 对象可用于 Qt Remote Objects 网络。 更多...
头: | #include <QRemoteObjectRegistry> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
qmake: | QT += remoteobjects |
继承: | QRemoteObjectReplica |
virtual | ~QRemoteObjectRegistry () override |
QBindable<QRemoteObjectSourceLocations> | bindableSourceLocations () const |
QRemoteObjectSourceLocations | sourceLocations () const |
void | remoteObjectAdded (const QRemoteObjectSourceLocation & entry ) |
void | remoteObjectRemoved (const QRemoteObjectSourceLocation & entry ) |
Registry (注册) 是特殊 Source/Replica (源/复本) 对保持通过 node 本身。它知道关于所有其它 源 在网络中是否可用,并简化连接过程对于其它 node 。
[bindable read-only]
sourceLocations
:
QRemoteObjectSourceLocations
注意: 此特性支持 QProperty 绑定。
此特性保持注册已知的一组源。
此特性是 QRemoteObjectSourceLocations,其是 typedef 对于 QHash < QString , QRemoteObjectSourceLocationInfo>. Each known 源 is contained as a QString key in the hash, and the corresponding value for that key is the QRemoteObjectSourceLocationInfo for the host node.
[override virtual noexcept]
QRemoteObjectRegistry::
~QRemoteObjectRegistry
()
析构函数为 QRemoteObjectRegistry .
[signal]
void
QRemoteObjectRegistry::
remoteObjectAdded
(const
QRemoteObjectSourceLocation
&
entry
)
此信号被发射每当向 Registry (注册) 添加新的 Source (源) 位置时。
entry is a QRemoteObjectSourceLocation, a typedef for QPair < QString , QRemoteObjectSourceLocationInfo>.
另请参阅 remoteObjectRemoved ().
[signal]
void
QRemoteObjectRegistry::
remoteObjectRemoved
(const
QRemoteObjectSourceLocation
&
entry
)
此信号被发射每当从 Registry (注册) 移除 Source (源) 位置时。
entry is a QRemoteObjectSourceLocation, a typedef for QPair < QString , QRemoteObjectSourceLocationInfo>.
另请参阅 remoteObjectAdded ().
返回 QRemoteObjectSourceLocations 对象,其包括注册已知的所有源的名称和额外信息。
注意: getter 函数对于特性 sourceLocations。