diff dbus_types.cpp @ 4:220e5619bf87

Profiles selection now fill contact list + new Jid class
author Goffi <goffi@goffi.org>
date Thu, 11 Aug 2011 00:02:25 +0200
parents 22b44846b04b
children 48045176d1c6
line wrap: on
line diff
--- a/dbus_types.cpp	Mon Aug 08 10:59:34 2011 +0200
+++ b/dbus_types.cpp	Thu Aug 11 00:02:25 2011 +0200
@@ -1,5 +1,5 @@
 /*
-Mignonne: a Salut à Toi frontend
+Bellaciao: a Salut à Toi frontend
 Copyright (C) 2011  Jérôme Poisson (goffi@goffi.org)
 
 This program is free software: you can redistribute it and/or modify
@@ -17,6 +17,20 @@
 */
 
 #include "dbus_types.h"
+#include <QtGlobal>
+
+QDBusArgument &operator<<(QDBusArgument &argument, const Jid &jid)
+{
+    return argument << jid.getString();
+}
+
+const QDBusArgument &operator>>(const QDBusArgument &argument, Jid &jid)
+{
+    QString _str = QString();
+    argument >> _str;
+    jid.fromString(_str);
+    return argument;
+}
 
 QDBusArgument &operator<<(QDBusArgument &argument, const ContactT &contact)
 {