X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoresessioneventprocessor.h;h=1b309f8f9f561837b13dd7d4b56b81de7d6d16c0;hb=48017b680ede0dbfb121d1184dfbd13536cfc53f;hp=76fe1f4de30efb1914db1fd9547091a8a889edcd;hpb=cc6e7c08709c4e761e2fd9c2e322751015497003;p=quassel.git diff --git a/src/core/coresessioneventprocessor.h b/src/core/coresessioneventprocessor.h index 76fe1f4d..1b309f8f 100644 --- a/src/core/coresessioneventprocessor.h +++ b/src/core/coresessioneventprocessor.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2019 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef CORESESSIONEVENTPROCESSOR_H -#define CORESESSIONEVENTPROCESSOR_H +#pragma once #include "basichandler.h" #include "corenetwork.h" @@ -40,7 +39,7 @@ class CoreSessionEventProcessor : public BasicHandler Q_OBJECT public: - CoreSessionEventProcessor(CoreSession* session); + explicit CoreSessionEventProcessor(CoreSession* session); inline CoreSession* coreSession() const { return _coreSession; } @@ -65,6 +64,7 @@ public: Q_INVOKABLE void lateProcessIrcEventQuit(IrcEvent* event); Q_INVOKABLE void processIrcEventTopic(IrcEvent* event); Q_INVOKABLE void processIrcEventError(IrcEvent* event); /// ERROR message from server + Q_INVOKABLE void processIrcEventSetname(IrcEvent* event); ///< Updated realname information #ifdef HAVE_QCA2 Q_INVOKABLE void processKeyEvent(KeyEvent* event); #endif @@ -186,5 +186,3 @@ private: const QString& awayStateAndModes, const QString& realname); }; - -#endif