{
}
+SyncableObject::SyncableObject(const QString &objectName, QObject *parent)
+ : QObject(parent),
+ _initialized(false),
+ _allowClientUpdates(false)
+{
+ setObjectName(objectName);
+}
+
SyncableObject::SyncableObject(const SyncableObject &other, QObject *parent)
: QObject(parent),
_initialized(other._initialized),
SyncableObject &SyncableObject::operator=(const SyncableObject &other) {
if(this == &other)
return *this;
-
+
_initialized = other._initialized;
_allowClientUpdates = other._allowClientUpdates;
return *this;
QMetaObject::invokeMethod(this, methodname.toAscii(), genericvalue);
properties[SignalProxy::methodBaseName(method)] = value;
- // qDebug() << ">>> SYNC:" << methodBaseName(method) << value;
}
// properties["Payload"] = QByteArray(10000000, 'a'); // for testing purposes
return properties;
iterator++;
continue;
}
-
+
int propertyIndex = meta->indexOfProperty(propName.toAscii());
if(propertyIndex == -1 || !meta->property(propertyIndex).isWritable())