4 * Created on: Sep 12, 2014
8 #ifndef XGUI_QTEVENTS_H_
9 #define XGUI_QTEVENTS_H_
13 #include <ModelAPI_ResultPart.h>
14 #include <Events_Message.h>
19 class XGUI_EXPORT PostponeMessageQtEvent : public QEvent
22 static QEvent::Type PostponeMessageQtEventType;
24 //TODO(mpv): ModelAPI_Document is taken here for example
25 //the commented code should be ok when you implement boost::shared_ptr on Events_Message
27 PostponeMessageQtEvent(boost::shared_ptr<ModelAPI_Document> theDoc)
28 //PostponeMessageQtEvent(boost::shared_ptr<Events_Message> theMessage)
29 : QEvent(PostponeMessageQtEventType),
31 //myMessage(theMessage)
35 static QEvent::Type type()
37 return PostponeMessageQtEventType;
41 //boost::shared_ptr<Events_Message> postponedMessage();
42 boost::shared_ptr<ModelAPI_Document> resultDoc();
46 //boost::shared_ptr<Events_Message> myMessage;
47 boost::shared_ptr<ModelAPI_Document> myTestDoc;
50 #endif /* XGUI_QEVENTS_H_ */