Obsolete Members for QDBusConnectionInterface

クラスQDBusConnectionInterface の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

シグナル

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

メンバー関数ドキュメント

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

この関数は非推奨である。新しいコードでは使用しないことを強くお勧めします。

代わりにQDBusServiceWatcher を使用してください。

このシグナルは、名前の出現や消滅を含め、バスのサービス所有権の変更が発生するたびに D-Bus サーバーによって発行されます。

このシグナルは、アプリケーションoldOwner がバス名name の所有権をアプリケーションnewOwner に奪われたことを意味します。oldOwner が空の文字列の場合、name という名前が作成されたばかりであることを意味します。newOwner が空の場合、name という名前には現在の所有者がおらず、もはや利用できません。

注意: このシグナルに接続すると、アプリケーションはバス上のすべてのサービスの所有権変更をリッスンし、受信します。実行中のサービスの数によっては、アプリケーションが必要以上のシグナルを受信することになります。この問題を回避するには、特定の変更をリッスンできるQDBusServiceWatcher

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.