類保持的信息有關 源 對象可用於 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 是 QRemoteObjectSourceLocation typedef 對於 QPair < QString , QRemoteObjectSourceLocationInfo>.
另請參閱 remoteObjectRemoved ().
[signal]
void
QRemoteObjectRegistry::
remoteObjectRemoved
(const
QRemoteObjectSourceLocation
&
entry
)
此信號被發射每當從 Registry (注冊) 移除 Source (源) 位置時。
entry 是 QRemoteObjectSourceLocation typedef 對於 QPair < QString , QRemoteObjectSourceLocationInfo>.
另請參閱 remoteObjectAdded ().
返迴 QRemoteObjectSourceLocations 對象,其包括注冊已知的所有源的名稱和額外信息。
注意: getter 函數對於特性 sourceLocations。