/***************************************************************************
- * Copyright (C) 2005-2010 by the Quassel Project *
+ * Copyright (C) 2005-2012 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
***************************************************************************/
#include "event.h"
+
+Event::Event(EventManager::EventType type)
+ : _type(type)
+{
+
+}
+
+QDebug operator<<(QDebug dbg, Event *e) {
+ dbg.nospace() << qPrintable(e->className()) << "("
+ << "type = 0x" << qPrintable(QString::number(e->type(), 16));
+ e->debugInfo(dbg);
+ //<< ", data = " << e->data(); // we don't use data anywhere yet
+ dbg.nospace() << ", flags = 0x" << qPrintable(QString::number(e->flags(), 16))
+ << ")";
+ return dbg.space();
+}
+