類保持的信息有關 Source 對象可用於 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 本身。它知道關於所有其它 Source 在網絡中是否可用,並簡化連接過程對於其它 node 。
[bindable read-only]
sourceLocations
:
QRemoteObjectSourceLocations
注意: This property supports QProperty 綁定。
此特性保持注冊已知的一組源。
此特性是 QRemoteObjectSourceLocations,其是 typedef 對於 QHash < QString , QUrl >。每個已知 Source 是 QString 鍵,當主機節點的 URL 是該鍵哈希的相應值。
[override virtual]
QRemoteObjectRegistry::
~QRemoteObjectRegistry
()
析構函數為 QRemoteObjectRegistry .
[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 對象,其包括注冊已知的所有源的名稱和額外信息。
注意: getter 函數對於特性 sourceLocations。