00001 #include "utilities/message_event.h" 00002 00003 namespace utilities 00004 { 00005 const QEvent::Type MessageEvent::Type = 00006 static_cast<QEvent::Type>(QEvent::registerEventType()); 00007 00008 MessageEvent::MessageEvent(const QString& topic, const Message& message) 00009 : QEvent(Type), topic_(topic), message_(message) 00010 { 00011 } 00012 00013 MessageEvent::~MessageEvent() {} 00014 00015 const QString& MessageEvent::getTopic() const { return topic_; } 00016 00017 const Message& MessageEvent::getMessage() const { return message_; } 00018 }