Re: [Vala] Properties in DBus
- From: Frederik <scumm_fredo gmx net>
- To: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Properties in DBus
- Date: Sat, 19 Sep 2009 21:21:55 +0200
Jaroslav Šmíd wrote:
How can I use DBus properties with vala? I've tried following:
-- code begin --
DBus.Connection con = DBus.Bus.get(DBus.BusType.SYSTEM);
dynamic DBus.Object nmIface =
con.get_object("org.freedesktop.NetworkManager",
"/org/freedesktop/NetworkManager", "org.freedesktop.NetworkManager");
dynamic DBus.Object propIface =
con.get_object("org.freedesktop.NetworkManager",
"/org/freedesktop/NetworkManager", "org.freedesktop.DBus.Properties");
DBus.ObjectPath[] activeConnections =
propIface.Get("org.freedesktop.NetworkManager", "ActiveConnections");
With 'propIface' being declared 'dynamic' you should be able to do:
DBus.ObjectPath[] activeConnections = propIface.ActiveConnections;
Best regards,
Frederik
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]