- virtual inline QString className() const { return "Event"; }
- virtual inline void debugInfo(QDebug &dbg) const { Q_UNUSED(dbg); }
+ virtual inline QString className() const { return "Event"; }
+ virtual inline void debugInfo(QDebug &dbg) const { Q_UNUSED(dbg); }
+
+ explicit Event(EventManager::EventType type, QVariantMap &map);
+
+ // must only use primitive types: string, int, double, list, hash
+ // we want to convert this to JSON in the future!
+ virtual void toVariantMap(QVariantMap &map) const;
+
+ inline void setValid(bool valid) { _valid = valid; }