X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fabstractmessageprocessor.cpp;h=662a1ac814c4ea937d93b4f9adbe8483bfcde508;hp=5ba8683f7fce8d7e1749090a1b2e1cb483f55333;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=efa00e5a912c34c37bcc6dad7b8bc6e3a6f3e4fb diff --git a/src/client/abstractmessageprocessor.cpp b/src/client/abstractmessageprocessor.cpp index 5ba8683f..662a1ac8 100644 --- a/src/client/abstractmessageprocessor.cpp +++ b/src/client/abstractmessageprocessor.cpp @@ -1,41 +1,27 @@ /*************************************************************************** -* Copyright (C) 2005-08 by the Quassel Project * -* devel@quassel-irc.org * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) version 3. * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -* GNU General Public License for more details. * -* * -* 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., * -* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * -***************************************************************************/ + * Copyright (C) 2005-2018 by the Quassel Project * + * devel@quassel-irc.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) version 3. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ #include "abstractmessageprocessor.h" #include "client.h" -AbstractMessageProcessor::AbstractMessageProcessor(QObject *parent) : QObject(parent) { - - - -} - -void AbstractMessageProcessor::process(Message &msg) { - processMessage(msg); - Client::buffer(msg.bufferInfo())->updateActivityLevel(msg); -} - -void AbstractMessageProcessor::process(QList &msgs) { - processMessages(msgs); - foreach(Message msg, msgs) { - Client::buffer(msg.bufferInfo())->updateActivityLevel(msg); - } -} +AbstractMessageProcessor::AbstractMessageProcessor(QObject* parent) + : QObject(parent) +{}