/***************************************************************************
- * Copyright (C) 2005-2010 by the Quassel Project *
+ * Copyright (C) 2005-2012 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
const QString &msg,
const QString &sender = QString(),
const QString &target = QString(),
- Message::Flags msgFlags = Message::None
+ Message::Flags msgFlags = Message::None,
+ const QDateTime ×tamp = QDateTime()
);
inline Message::Type msgType() const { return _msgType; }
inline void setMsgFlag(Message::Flag flag) { _msgFlags |= flag; }
inline void setMsgFlags(Message::Flags flags) { _msgFlags = flags; }
+ static Event *create(EventManager::EventType type, QVariantMap &map, Network *network);
+
protected:
+ explicit MessageEvent(EventManager::EventType type, QVariantMap &map, Network *network);
+ void toVariantMap(QVariantMap &map) const;
+
virtual inline QString className() const { return "MessageEvent"; }
virtual inline void debugInfo(QDebug &dbg) const {
NetworkEvent::debugInfo(dbg);