X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsyncableobject.cpp;h=b66626d66d1e2da0955f29c3b07aa6e3a06dc4f8;hp=325f0be32fdd6002dbc539afafd7b19c171da72b;hb=9d3446581d6f1900806b42078b7d2c16289a5fa5;hpb=70283ef877bdf3339fb067667ad9130ceabd8b9a diff --git a/src/common/syncableobject.cpp b/src/common/syncableobject.cpp index 325f0be3..b66626d6 100644 --- a/src/common/syncableobject.cpp +++ b/src/common/syncableobject.cpp @@ -27,6 +27,7 @@ #include "signalproxy.h" #include "util.h" +INIT_SYNCABLE_OBJECT(SyncableObject) SyncableObject::SyncableObject(QObject *parent) : QObject(parent), _initialized(false), @@ -157,14 +158,15 @@ void SyncableObject::renameObject(const QString &newName) { void SyncableObject::update(const QVariantMap &properties) { fromVariantMap(properties); - emit updated(properties); + SYNC(ARG(properties)) + emit updated(); } void SyncableObject::requestUpdate(const QVariantMap &properties) { if(allowClientUpdates()) { update(properties); } - emit updateRequested(properties); + REQUEST(ARG(properties)) } void SyncableObject::sync_call__(SignalProxy::ProxyMode modeType, const char *funcname, ...) const {