X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Flogger.h;fp=src%2Fcommon%2Flogger.h;h=d9f935ccec738384ea474231805d3a4d8f71e9dc;hb=5b4437c6ce729f4d51f7664ca839680853fd21c1;hp=f49d270da7aea5a59cc3530b45a17c6ca2a3b9db;hpb=6b75ac568098c17de5f0a98ce0d96781b86e98b3;p=quassel.git diff --git a/src/common/logger.h b/src/common/logger.h index f49d270d..d9f935cc 100644 --- a/src/common/logger.h +++ b/src/common/logger.h @@ -21,7 +21,10 @@ #ifndef _LOGGER_H_ #define _LOGGER_H_ +#include "types.h" + #include +#include #include class Logger { @@ -54,6 +57,13 @@ class Logger { inline Logger &operator<<(const QLatin1String &t) { stream->internalStream << t.latin1(); return *this; } inline Logger &operator<<(const QByteArray & t) { stream->internalStream << t ; return *this; } inline Logger &operator<<(const void * t) { stream->internalStream << t; return *this; } + inline Logger &operator<<(const QStringList & t) { stream->internalStream << t.join(" "); return *this; } + inline Logger &operator<<(const BufferId & t) { stream->internalStream << QVariant::fromValue(t).toInt(); return *this; } + inline Logger &operator<<(const NetworkId & t) { stream->internalStream << QVariant::fromValue(t).toInt(); return *this; } + inline Logger &operator<<(const UserId & t) { stream->internalStream << QVariant::fromValue(t).toInt(); return *this; } + inline Logger &operator<<(const MsgId & t) { stream->internalStream << QVariant::fromValue(t).toInt(); return *this; } + inline Logger &operator<<(const IdentityId & t) { stream->internalStream << QVariant::fromValue(t).toInt(); return *this; } + inline Logger &operator<<(const AccountId & t) { stream->internalStream << QVariant::fromValue(t).toInt(); return *this; } void log(); private: