The QtDBus 模塊是可以用於履行 IPC (進程間通信) 的僅 Unix 庫模塊使用 D-Bus 協議。 更多...
| QDBus | Contains miscellaneous identifiers used throughout the QtDBus library |
| QDBusAbstractAdaptor | D-Bus 適配器類的基類 |
| QDBusAbstractInterface | The base class for all D-Bus interfaces in the QtDBus binding, allowing access to remote interfaces |
| QDBusArgument | 用於編組和解組 D-Bus 自變量 |
| QDBusConnection | 錶示到 D-Bus 總綫守護程序的連接 |
| QDBusConnectionInterface | 訪問 D-Bus 總綫守護程序服務 |
| QDBusContext | 允許槽確定調用的 D-Bus 上下文 |
| QDBusError | 錶示從 D-Bus 總綫或從在總綫中發現的遠程應用程序收到的錯誤 |
| QDBusInterface | 遠程對象上的接口代理 |
| QDBusMessage | 錶示通過 D-Bus 總綫發送 (或接收) 的一條消息 |
| QDBusObjectPath | 使程序員能夠標識由 D-Bus 類型係統提供的 OBJECT_PATH 類型 |
| QDBusPendingCall | 引用一待決異步調用 |
| QDBusPendingCallWatcher | 等待異步迴復的方便手段 |
| QDBusPendingReply | 包含異步方法調用的迴復 |
| QDBusPendingReply::Select | |
| QDBusReply | 將方法調用迴復存儲到遠程對象 |
| QDBusServiceWatcher | 允許用戶看守總綫服務改變 |
| QDBusSignature | 使程序員能夠標識由 D-Bus 類型係統提供的 SIGNATURE 類型 |
| QDBusUnixFileDescriptor | 保持一 Unix 文件描述符 |
| QDBusVariant | 使程序員能夠標識由 D-Bus 類型係統提供的變量類型 |
應用程序使用 QtDBus 模塊可以通過導齣對象為其它遠程應用程序提供服務,也可以通過放置調用和訪問特性使用由那些應用程序導齣的服務。
The QtDBus 模塊提供接口擴展 Qt 信號和槽 機製,允許將某一連接到遠程發射信號,及將本地信號連接到遠程槽。
要使用此模塊,在應用程序中使用以下代碼:
#include <QtDBus>
若使用 qmake 構建應用程序,可以將此行添加到 .pro 文件以使其鏈接到 QtDBus 庫:
QT += dbus
注意:
此模塊的源代碼位於
src/qdbus
目錄。當從源代碼安裝 Qt 時,將在構建 Qt 工具時構建此模塊。
見 D-Bus 頁麵瞭解如何使用此模塊的有關詳細信息。
此模塊屬於所有 Qt editions .