+
+void SyncableObject::renameObject(const QString &newName) {
+ const QString oldName = objectName();
+ if(oldName != newName) {
+ setObjectName(newName);
+ emit objectRenamed(newName, oldName);
+ }
+}
+
+void SyncableObject::update(const QVariantMap &properties) {
+ fromVariantMap(properties);
+ emit updated(properties);
+}
+
+void SyncableObject::requestUpdate(const QVariantMap &properties) {
+ if(allowClientUpdates()) {
+ update(properties);
+ }
+ emit updateRequested(properties);
+}