Obsolete Members for QDBusConnection

以下成员源于类 QDBusConnection 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

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

成员函数文档编制

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

This function is deprecated. We strongly advise against using it in new code.

这是重载函数。

发送 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.