/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel Project *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
return in;
}
+QDebug operator<<(QDebug dbg, const Message &msg) {
+ dbg.nospace() << qPrintable(QString("Message(MsgId:")) << msg.msgId()
+ << qPrintable(QString(",")) << msg.timestamp()
+ << qPrintable(QString(", Type:")) << msg.type()
+ << qPrintable(QString(", Flags:")) << msg.flags() << qPrintable(QString(")"))
+ << msg.sender() << ":" << msg.contents();
+ return dbg;
+}