X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Feventmanager.h;h=246c58a76f9d2b48723c2792e98c008e3ad56fc2;hp=edebe61774f1d50d876ba2d39e16554580abca5b;hb=92fc8c5b119111a35ab8423c3cbde5b2a022badf;hpb=76db8cdfbeffaaba359c8e80cf2146da9e9e7f8a diff --git a/src/common/eventmanager.h b/src/common/eventmanager.h index edebe617..246c58a7 100644 --- a/src/common/eventmanager.h +++ b/src/common/eventmanager.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,8 +18,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef EVENTMANAGER_H -#define EVENTMANAGER_H +#pragma once + +#include "common-export.h" #include @@ -28,7 +29,7 @@ class Event; class Network; -class EventManager : public QObject +class COMMON_EXPORT EventManager : public QObject { Q_OBJECT Q_FLAGS(EventFlag EventFlags) @@ -88,7 +89,10 @@ public : IrcEvent = 0x00030000, IrcEventAuthenticate, + IrcEventAccount, + IrcEventAway, IrcEventCap, + IrcEventChghost, IrcEventInvite, IrcEventJoin, IrcEventKick, @@ -101,6 +105,7 @@ public : IrcEventPrivmsg, IrcEventQuit, IrcEventTopic, + IrcEventError, /// ERROR message from server IrcEventWallops, IrcEventRawPrivmsg, ///< Undecoded privmsg (still needs CTCP parsing) IrcEventRawNotice, ///< Undecoded notice (still needs CTCP parsing) @@ -112,11 +117,9 @@ public : MessageEvent = 0x00040000, ///< Stringified event suitable for converting to Message CtcpEvent = 0x00050000, - CtcpEventFlush + CtcpEventFlush, -#ifdef HAVE_QCA2 - ,KeyEvent = 0x00060000 -#endif + KeyEvent = 0x00060000 }; EventManager(QObject *parent = 0); @@ -193,6 +196,4 @@ private: }; -Q_DECLARE_OPERATORS_FOR_FLAGS(EventManager::EventFlags); - -#endif +Q_DECLARE_OPERATORS_FOR_FLAGS(EventManager::EventFlags)