QRemoteObjectRegistry 類

類保持的信息有關 對象可用於 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 QRemoteObjectRegistry:: sourceLocations () const

返迴 QRemoteObjectSourceLocations 對象,其包括注冊已知的所有源的名稱和額外信息。

注意: getter 函數對於特性 sourceLocations。