X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fctcpparser.h;h=9630f6cdec0cd4acd4ae81cdece4da0a04a1025b;hb=3a3e844f9fcfd12235a0086af75ecd503b621ef4;hp=d3f50c9b994e6b79862b40ec208292f4347bf2e3;hpb=a272baf28f926a9e66be767936dd38b6b4aa94da;p=quassel.git diff --git a/src/core/ctcpparser.h b/src/core/ctcpparser.h index d3f50c9b..9630f6cd 100644 --- a/src/core/ctcpparser.h +++ b/src/core/ctcpparser.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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 * @@ -22,6 +22,7 @@ #define CTCPPARSER_H #include +#include #include "corenetwork.h" #include "eventmanager.h" @@ -36,7 +37,7 @@ class CtcpParser : public QObject Q_OBJECT public: - CtcpParser(CoreSession *coreSession, QObject *parent = 0); + CtcpParser(CoreSession *coreSession, QObject *parent = nullptr); inline CoreSession *coreSession() const { return _coreSession; } @@ -75,6 +76,9 @@ protected: QByteArray pack(const QByteArray &ctcpTag, const QByteArray &message); void packedReply(CoreNetwork *network, const QString &bufname, const QList &replies); +private slots: + void setStandardCtcp(bool enabled); + private: inline QString targetDecode(IrcEventRawMessage *e, const QByteArray &msg) { return coreNetwork(e)->userDecode(e->target(), msg); } @@ -85,8 +89,8 @@ private: QString bufferName; QList replies; - CtcpReply() : network(0) {} - CtcpReply(CoreNetwork *net, const QString &buf) : network(net), bufferName(buf) {} + CtcpReply() : network(nullptr) {} + CtcpReply(CoreNetwork *net, QString buf) : network(net), bufferName(std::move(buf)) {} }; QHash _replies;