projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use braced-init list when returning types
[quassel.git]
/
src
/
common
/
networkconfig.cpp
diff --git
a/src/common/networkconfig.cpp
b/src/common/networkconfig.cpp
index
92176e2
..
1c0eb37
100644
(file)
--- a/
src/common/networkconfig.cpp
+++ b/
src/common/networkconfig.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-
09 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 *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-15,21
+15,13
@@
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 5
9 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
+ * 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
***************************************************************************/
#include "networkconfig.h"
***************************************************************************/
#include "networkconfig.h"
-INIT_SYNCABLE_OBJECT(NetworkConfig)
NetworkConfig::NetworkConfig(const QString &objectName, QObject *parent)
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);
}
SYNC(ARG(delay))
emit autoWhoDelaySet(delay);
}
+
+
+void NetworkConfig::setStandardCtcp(bool enabled)
+{
+ if (_standardCtcp == enabled)
+ return;
+
+ _standardCtcp = enabled;
+ SYNC(ARG(enabled))
+ emit standardCtcpSet(enabled);
+}