comparison dbus_types.cpp @ 7:017925589d4c

Contact (formerly ContactT) now use shared data
author Goffi <goffi@goffi.org>
date Sun, 14 Aug 2011 18:03:54 +0200
parents 48045176d1c6
children
comparison
equal deleted inserted replaced
6:48045176d1c6 7:017925589d4c
30 argument >> _str; 30 argument >> _str;
31 jid.fromString(_str); 31 jid.fromString(_str);
32 return argument; 32 return argument;
33 } 33 }
34 34
35 QDBusArgument &operator<<(QDBusArgument &argument, const ContactT &contact) 35 QDBusArgument &operator<<(QDBusArgument &argument, const Contact &contact)
36 { 36 {
37 argument.beginStructure(); 37 argument.beginStructure();
38 StringDict attr = contact.getAttributes(); 38 StringDict attr = contact.getAttributes();
39 argument << contact.jid << attr << contact.groups; 39 argument << contact.getJid() << attr << contact.getGroups();
40 argument.endStructure(); 40 argument.endStructure();
41 return argument; 41 return argument;
42 } 42 }
43 const QDBusArgument &operator>>(const QDBusArgument &argument, ContactT &contact) 43 const QDBusArgument &operator>>(const QDBusArgument &argument, Contact &contact)
44 { 44 {
45 argument.beginStructure(); 45 argument.beginStructure();
46 argument >> contact.jid; 46 argument >> contact.getJid();
47 StringDict attr; 47 StringDict attr;
48 argument >> attr; 48 argument >> attr;
49 contact.setAttributes(attr); 49 contact.setAttributes(attr);
50 argument >> contact.groups; 50 argument >> contact.getGroups();
51 argument.endStructure(); 51 argument.endStructure();
52 return argument; 52 return argument;
53 } 53 }
54 54
55 QDBusArgument &operator<<(QDBusArgument &argument, const MessageT &message) 55 QDBusArgument &operator<<(QDBusArgument &argument, const MessageT &message)