X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsyncableobject.cpp;h=668f61c607af133b88e04a0d141231720175f91d;hp=dc202e2c1690aacac5488e2eb00b9ec8ee9ce14d;hb=8de2d4650197bdae2f39f804228f3bce5ddbd59c;hpb=6447ec038a9553427fb729f5889c69e0f2f247a8 diff --git a/src/common/syncableobject.cpp b/src/common/syncableobject.cpp index dc202e2c..668f61c6 100644 --- a/src/common/syncableobject.cpp +++ b/src/common/syncableobject.cpp @@ -26,12 +26,21 @@ #include "util.h" SyncableObject::SyncableObject(QObject *parent) : QObject(parent) { - + _initialized = false; } SyncableObject::SyncableObject(const SyncableObject &other, QObject *parent) : QObject(parent) { - Q_UNUSED(other); + _initialized = other._initialized; + +} + +bool SyncableObject::isInitialized() const { + return _initialized; +} +void SyncableObject::setInitialized() { + _initialized = true; + emit initDone(); } QVariantMap SyncableObject::toVariantMap() {