From: Sebastian Goth Date: Thu, 24 Jul 2008 18:32:27 +0000 (+0200) Subject: Added support for various additional datatypes. X-Git-Tag: 0.3.0~199 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=5b4437c6ce729f4d51f7664ca839680853fd21c1;hp=6b75ac568098c17de5f0a98ce0d96781b86e98b3 Added support for various additional datatypes. Supports quassel's types from types.h --- 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: