Obsolete Members for QDBusConnection

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

公共函數

(obsolete) bool callWithCallback (const QDBusMessage & message , QObject * receiver , const char * returnMethod , int timeout = -1) const

靜態公共成員

(obsolete) QDBusConnection sender ()

成員函數文檔編製

bool QDBusConnection:: callWithCallback (const QDBusMessage & message , QObject * receiver , const char * returnMethod , int timeout = -1) const

這是重載函數。

發送 message over this connection and returns immediately. When the reply is received, the method returnMethod is called in the receiver 對象。

This function is suitable for method calls only. It is guaranteed that the slot will be called exactly once with the reply, as long as the parameter types match and no error occurs.

This function is dangerous because it cannot report errors, including the expiration of the timeout.

返迴 true if the message was sent, or false if the message could not be sent.

[static] QDBusConnection QDBusConnection:: sender ()

Always returns a disconnected, invalid QDBusConnection object. For the old functionality of determining the sender connection, please use QDBusContext .

另請參閱 QDBusContext .