X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmessage.cpp;h=f1f7c48af8ca00eab4cdec12ef9609fa8c66b2eb;hp=124a291aa8564c85d599204942c19451776a7b26;hb=f824db0e31b54969e0b7fa0b5405b1e9173d482c;hpb=dfbd0465f2a58eee4771472afd261869e5e5c400 diff --git a/src/common/message.cpp b/src/common/message.cpp index 124a291a..f1f7c48a 100644 --- a/src/common/message.cpp +++ b/src/common/message.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * 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 * @@ -70,3 +70,11 @@ QDataStream &operator>>(QDataStream &in, Message &msg) { 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; +}