From 5b4437c6ce729f4d51f7664ca839680853fd21c1 Mon Sep 17 00:00:00 2001 From: Sebastian Goth Date: Thu, 24 Jul 2008 20:32:27 +0200 Subject: [PATCH 1/1] Added support for various additional datatypes. Supports quassel's types from types.h --- src/common/logger.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: -- 2.20.1