receiving a string in qt though dbus-message.
Mukesh Savaliya
Mukesh.Savaliya at MatrixComSec.com
Wed Jul 7 23:40:06 PDT 2010
Hello list,
I want to send an integer, a string and receive an array of bytes .This is
a dbus-glib application. And the opposite application is qt application. I
don't have a way to receive and send from qt application .can any one please
guide me
On this.
This is the sending code in dbus-glib application. Quick reply will help me
a lot.
Sending an integer and string, receiving an array of bytes
GArray *arr;
error = NULL;
if (!dbus_g_proxy_call (proxy, "Foobar", &error,
G_TYPE_INT, 42, G_TYPE_STRING, "hello",
G_TYPE_INVALID,
DBUS_TYPE_G_UCHAR_ARRAY, &arr, G_TYPE_INVALID))
{
/* Handle error */
}
g_assert (arr != NULL);
printf ("got back %u values", arr->len);
with regards,
Mukesh .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100708/fd715532/attachment.htm>
More information about the dbus
mailing list