Help, need example of passing custom class in QDbusArguments
-
Hello,
I need some help finding an end-to-end example of using a custom class to pass to and from a dbus service. I have found mentions of
Q_DECLARE_METATYPE
andqDBusRegisterMetaType<>
and found a barely compiling example. But no really good example of how to go about this.I would like to create a structure which contains information which could be serialized to a QDBusArgument using
<<
/>>
operators. And then create a QList<myClass> which can be returned from a service method. I currently useQVariantMap
and have been able to use it to pass complex data out. But now we need to be able to actually pass structured data through the IPC mechanism.Any good help will be greatly appreciated.
Thank you,
Michael Uman
Sr Firmware Engineer
Cana Technology