[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [Semi-OT] How to get a dbus array of dbus_object_path from a
From:       Iván Forcada Atienza <ivan () swscanner ! org>
Date:       2007-02-17 19:39:44
Message-ID: 20070217193944.GA30929 () masao ! forcada ! info
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi again!!
Remember this??

[mar, 13 feb 2007 20:17:52 +0100] - Iván Forcada Atienza:
> [mar, 13 feb 2007 19:46:56 +0100] - Thiago Macieira:
> > Iván Forcada Atienza wrote:
> > >QDBusReply< QList< QDBusObjectPath > > reply =
> > > dbus_iface.call("getDevices");
> > 
> > That's because we forgot to declare QList<QDBusObjectPath> as a Qt meta 
> > type. You must do that and also register it with QtDBus if you're using 
> > Qt 4.2.
> > 
> > So, somewhere out of all functions:
> > Q_DECLARE_METATYPE(QList<QDBusObjectPath>)
> > 
> > and in your code:
> > 	qDBusRegisterMetaType<QList<QDBusObjectPath> >();
> > 
> > (We've fixed it for Qt 4.3)
> 
> Great!!! That worked!!!! :-)))))
> 
> Thanks a lot!!

Now, I'm getting into troubles then the return value is an array? of
mixed things, for example:
$ dbus-send 	--system \
		--print-reply \
		--reply-timeout=2000 \
		--type=method_call  \
		--dest=org.freedesktop.NetworkManager  \
		/org/freedesktop/NetworkManager/Devices/ath0/Networks/some_wireless_network  \
		org.freedesktop.NetworkManager.getProperties  
... that answers:
   object path "/org/freedesktop/NetworkManager/Devices/ath0/Networks/some_wireless_network"
   string "some_wireless_network"
   string "AA:BB:CC:DD:EE:FF"
   int32 48
   double 2.412e+09
   int32 55488
   int32 2
   int32 12290
   boolean true

Is there any way of getting this information using QtDBus???
I'm using "QDBusReply< QList<QDBusVariant> > reply = dbus_iface.call("getProperties");" but
no success :-(. Also tried QList<QVariant> and QDbusVariant alone with same results.

Any hints?

Thanks a lot!!

-- 
__________________________________________________________________
Iván Forcada Atienza:
  correo: ivan@forcada.info
  jabber: ivanfor@jabber.guadawireless.org
------------------------------------------------------------------
Nodo guada21 en GuadaWireless usando Debian GNU/Linux:
  http://el21.guadawireless.net
------------------------------------------------------------------
"Software is like sex: it's better when it's free" (Linus Torvalds)

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic