};
enum EventFlag {
+ Self = 0x01, ///< Self-generated (user input) event
Fake = 0x08, ///< Ignore this in CoreSessionEventProcessor
Netsplit = 0x10, ///< Netsplit join/part, ignore on display
Backlog = 0x20,
Silent = 0x40, ///< Don't generate a MessageEvent
Stopped = 0x80
};
- Q_DECLARE_FLAGS(EventFlags, EventFlag)
+ Q_DECLARE_FLAGS(EventFlags, EventFlag);
/*
IrcEventNumericMask = 0x00000fff, /* for checking if an event is numeric */
MessageEvent = 0x00040000, ///< Stringified event suitable for converting to Message
+
+ CtcpEvent = 0x00050000,
+ CtcpEventFlush,
};
EventManager(QObject *parent = 0);
EventType eventTypeByName(const QString &name) const;
EventType eventGroupByName(const QString &name) const;
+
QString enumName(EventType type) const;
public slots:
inline HandlerHash ®isteredFilters() { return _registeredFilters; }
//! Add handlers to an existing sorted (by priority) handler list
- void insertHandlers(const QList<Handler> &newHandlers, QList<Handler> &existing);
+ void insertHandlers(const QList<Handler> &newHandlers, QList<Handler> &existing, bool checkDupes = false);
//! Add filters to an existing filter hash
void insertFilters(const QList<Handler> &newFilters, QHash<QObject *, Handler> &existing);