Re: [Vala] error with arraylist and class



What type Feed is? I think DBus can only serialize simple types or other
objects that are exposed by DBus as well, so Feed must be a DBus object.

*Alexandre Rosenfeld*

2011/3/23 Pavol Klačanský <pavol klacansky com>

Thanks,

yes it is in dbus object, but if I change it to array of feed, I get
same error

server.vala:44.9-44.12: error: GVariant serialization of type `Feed' is
not supported
       public Feed[] get_all_feeds()




V Streda, 23. marec 2011 o 12:52 +0100, Marco Trevisan (Treviño)
napísal(a):
Il giorno lun, 21/03/2011 alle 21.10 +0100, Pavol Klačanský ha scritto:
Hi, this line reports me error

"Feed" is class

"public Gee.ArrayList<Feed?> get_all_feeds() {"

this error

server.vala:44.9-44.28: error: GVariant serialization of type
`Gee.ArrayList<Feed?>' is not supported
    public Gee.ArrayList<Feed?> get_all_feeds() {



Is that method into a dbus object? In that case the return type should
be gvariant serializable (and in this case it could be an array of Feed)
to work. If you don't want to export the method do dbus, make it private
or dbus visible=false.


_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list


_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]