Obsolete Members for QDBusConnectionInterface

以下成員源於類 QDBusConnectionInterface 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

信號

(obsolete) void serviceOwnerChanged (const QString & name , const QString & oldOwner , const QString & newOwner )

成員函數文檔編製

[signal] void QDBusConnectionInterface:: serviceOwnerChanged (const QString & name , const QString & oldOwner , const QString & newOwner )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 QDBusServiceWatcher 代替。

This signal is emitted by the D-Bus server whenever a service ownership change happens in the bus, including apparition and disparition of names.

This signal means the application oldOwner lost ownership of bus name name to application newOwner 。若 oldOwner is an empty string, it means the name name has just been created; if newOwner is empty, the name name has no current owner and is no longer available.

注意: connecting to this signal will make the application listen for and receive every single service ownership change on the bus. Depending on how many services are running, this make the application be activated to receive more signals than it needs. To avoid this problem, use the QDBusServiceWatcher class, which can listen for specific changes.