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 .