diff dbus_types.cpp @ 6:48045176d1c6

ContactT and Ji improvments
author Goffi <goffi@goffi.org>
date Fri, 12 Aug 2011 22:08:37 +0200
parents 220e5619bf87
children 017925589d4c
line wrap: on
line diff
--- a/dbus_types.cpp	Fri Aug 12 22:05:50 2011 +0200
+++ b/dbus_types.cpp	Fri Aug 12 22:08:37 2011 +0200
@@ -35,14 +35,19 @@
 QDBusArgument &operator<<(QDBusArgument &argument, const ContactT &contact)
 {
     argument.beginStructure();
-    argument << contact.jid << contact.attributes << contact.groups;
+    StringDict attr = contact.getAttributes();
+    argument << contact.jid << attr << contact.groups;
     argument.endStructure();
     return argument;
 }
 const QDBusArgument &operator>>(const QDBusArgument &argument, ContactT &contact)
 {
     argument.beginStructure();
-    argument >> contact.jid >> contact.attributes >> contact.groups;
+    argument >> contact.jid;
+    StringDict attr;
+    argument >> attr;
+    contact.setAttributes(attr);
+    argument >> contact.groups;
     argument.endStructure();
     return argument;
 }