X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fabstractmessageprocessor.h;h=a1b34668e1cb1563e77be4e9f7bbb1cc53da038b;hp=5a228a2c449c154dd0f680ab1ab3929f02ff2dd4;hb=6eefdfc697067d184a589fc8a231b16316c09106;hpb=9fc57dc2c000e80fb8bd746a090e2e8210e1278e diff --git a/src/client/abstractmessageprocessor.h b/src/client/abstractmessageprocessor.h index 5a228a2c..a1b34668 100644 --- a/src/client/abstractmessageprocessor.h +++ b/src/client/abstractmessageprocessor.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 * @@ -18,14 +18,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef ABSTRACTMESSAGEPROCESSOR_H_ -#define ABSTRACTMESSAGEPROCESSOR_H_ +#pragma once + +#include "client-export.h" #include "client.h" #include "message.h" #include "networkmodel.h" -class AbstractMessageProcessor : public QObject +class CLIENT_EXPORT AbstractMessageProcessor : public QObject { Q_OBJECT @@ -36,6 +37,7 @@ public: public slots: virtual void process(Message &msg) = 0; virtual void process(QList &msgs) = 0; + virtual void networkRemoved(NetworkId id) = 0; protected: // updateBufferActivity also sets the Message::Redirected flag which is later used @@ -43,6 +45,3 @@ protected: // is called before inserting the message into the model inline void preProcess(Message &msg) { Client::networkModel()->updateBufferActivity(msg); } }; - - -#endif