- inline QString target() const { return _target; }
- inline QString text() const { return _text; }
- inline QString sender() const { return _sender; }
+ 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);
+ dbg.nospace() << ", sender = " << qPrintable(sender())
+ << ", target = " << qPrintable(target())
+ << ", text = " << text()
+ << ", msgtype = " << qPrintable(QString::number(msgType(), 16))
+ << ", buffertype = " << qPrintable(QString::number(bufferType(), 16))
+ << ", msgflags = " << qPrintable(QString::number(msgFlags(), 16));
+ }