X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fnetworkconfig.cpp;h=1c0eb379ad258e2c08711f817ae6b184a075a806;hp=4c60d3a62c02b4c15d1725c939ad2125650e8a3f;hb=8582c2ad5708a1972c85bea1cf8d81ad3ece4814;hpb=5b686746c880e5cda6d5de3e08180ea4332ff222 diff --git a/src/common/networkconfig.cpp b/src/common/networkconfig.cpp index 4c60d3a6..1c0eb379 100644 --- a/src/common/networkconfig.cpp +++ b/src/common/networkconfig.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,16 +20,8 @@ #include "networkconfig.h" -INIT_SYNCABLE_OBJECT(NetworkConfig) NetworkConfig::NetworkConfig(const QString &objectName, QObject *parent) - : SyncableObject(objectName, parent), - _pingTimeoutEnabled(true), - _pingInterval(30), - _maxPingCount(6), - _autoWhoEnabled(true), - _autoWhoInterval(90), - _autoWhoNickLimit(200), - _autoWhoDelay(5) + : SyncableObject(objectName, parent) { } @@ -107,3 +99,14 @@ void NetworkConfig::setAutoWhoDelay(int delay) SYNC(ARG(delay)) emit autoWhoDelaySet(delay); } + + +void NetworkConfig::setStandardCtcp(bool enabled) +{ + if (_standardCtcp == enabled) + return; + + _standardCtcp = enabled; + SYNC(ARG(enabled)) + emit standardCtcpSet(enabled); +}