1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
6 * Created on: Sep 12, 2014
10 #ifndef XGUI_QTEVENTS_H_
11 #define XGUI_QTEVENTS_H_
15 #include <ModelAPI_ResultPart.h>
16 #include <Events_Message.h>
23 * Class of event to send application events in multi thread environment
25 class XGUI_EXPORT PostponeMessageQtEvent : public QEvent
29 static QEvent::Type PostponeMessageQtEventType;
32 /// \param theMessage an event message to send
33 PostponeMessageQtEvent(const std::shared_ptr<Events_Message>& theMessage)
34 : QEvent(PostponeMessageQtEventType),
39 /// Returns type of the event
40 static QEvent::Type type()
42 return PostponeMessageQtEventType;
45 /// Returns current messasge
46 std::shared_ptr<Events_Message> postponedMessage();
50 std::shared_ptr<Events_Message> myMessage;
53 #endif /* XGUI_QEVENTS_H_ */