類保持的信息有關 Source 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 () |
類保持的信息有關 Source objects available on the Qt Remote Objects network
Registry (注冊) 是特殊 Source/Replica (源/復本) 對保持通過 node 本身。它知道關於所有其它 Source 在網絡中是否可用,並簡化連接過程對於其它 node 。
此特性保持注冊已知的一組源。
此特性是 QRemoteObjectSourceLocations,其是 typedef 對於 QHash < QString , QUrl >。每個已知 Source 是 QString 鍵,當主機節點的 URL 是該鍵哈希的相應值。
訪問函數:
| QRemoteObjectSourceLocations | sourceLocations () const |
析構函數為 QRemoteObjectRegistry .
[static]
void
QRemoteObjectRegistry::
registerMetatypes
()
[signal]
void
QRemoteObjectRegistry::
remoteObjectAdded
(const
QRemoteObjectSourceLocation
&
entry
)
此信號被發射每當嚮 Registry (注冊) 添加新的 Source (源) 位置時。
entry 是 QRemoteObjectSourceLocation typedef 對於 QPair < QString , QUrl >.
另請參閱 remoteObjectRemoved ().
[signal]
void
QRemoteObjectRegistry::
remoteObjectRemoved
(const
QRemoteObjectSourceLocation
&
entry
)
此信號被發射每當從 Registry (注冊) 移除 Source (源) 位置時。
entry 是 QRemoteObjectSourceLocation typedef 對於 QPair < QString , QUrl >.
另請參閱 remoteObjectAdded ().
返迴 QRemoteObjectSourceLocations 對象,其包括注冊已知的所有源的名稱和額外信息。
注意: getter 函數對於特性 sourceLocations .