Logo Search packages:      
Sourcecode: kdbus version File versions  Download package

QDBusMessage QDBusMessage::methodCall ( const QString &  service,
const QString &  path,
const QString &  interface,
const QString &  method 
) [static]

Creates a message for sending a DBus method call.

Invoking a method over DBus requires a message of type MethodCallMessage as well as the information where it should be sent to, e.g which interface of which object in which service. See Naming and syntax conventions in DBus for recommendations on those parameters.

service the DBus name of the application hosting the service object
path the object path of the service object
interface the object's interface to which the method belongs
method the method's name
a message suitable for appending arguments and for sending
See also:



Definition at line 62 of file qdbusmessage.cpp.

References d.

Referenced by QDBusProxy::send(), QDBusProxy::sendWithAsyncReply(), and QDBusProxy::sendWithReply().

    QDBusMessage message;
    message.d->type = DBUS_MESSAGE_TYPE_METHOD_CALL;
    message.d->service = service;
    message.d->path = path;
    message.d->interface = interface;
    message.d->member = method;

    return message;

Generated by  Doxygen 1.6.0   Back to index