SignalProxy now only allows syncing for classes derived from the new
[quassel.git] / src / common / identity.h
index 3db8a28..bffd2a3 100644 (file)
@@ -27,8 +27,9 @@
 #include <QStringList>
 
 #include "types.h"
+#include "syncableobject.h"
 
-class Identity : public QObject {
+class Identity : public SyncableObject {
   Q_OBJECT
 
   Q_PROPERTY(IdentityId identityId READ id WRITE setId STORED false);
@@ -158,7 +159,7 @@ class Identity : public QObject {
     friend QDataStream &operator>>(QDataStream &in, Identity &identity);
 };
 
-QDataStream &operator<<(QDataStream &out, const Identity &identity);
+QDataStream &operator<<(QDataStream &out, Identity identity);
 QDataStream &operator>>(QDataStream &in, Identity &identity);
 
 Q_DECLARE_METATYPE(Identity);