/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include "types.h"
DccConfig::DccConfig(QObject* parent)
- : SyncableObject(parent)
+ : SyncableObject("DccConfig", parent)
{
static auto regTypes = []() -> bool {
qRegisterMetaTypeStreamOperators<IpDetectionMode>("DccConfig::IpDetectionMode");
}();
Q_UNUSED(regTypes);
- renameObject("DccConfig");
setAllowClientUpdates(true);
}
-DccConfig& DccConfig::operator=(const DccConfig& other)
-{
- if (this == &other)
- return *this;
-
- SyncableObject::operator=(other);
-
- static auto propCount = staticMetaObject.propertyCount();
- for (int i = 0; i < propCount; ++i) {
- auto propName = staticMetaObject.property(i).name();
- setProperty(propName, other.property(propName));
- }
-
- return *this;
-}
-
bool DccConfig::operator==(const DccConfig& other)
{
// NOTE: We don't compare the SyncableObject attributes (isInitialized, clientUpdatesAllowed())