X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_QtEvents.h;h=0a3528bd70a16324dbda57380b49215680ac197c;hb=254de4ef0338b77444b5e43e104900f15c814132;hp=5c415a278fcaeaeca10a4edeb536721e629e8325;hpb=0783fed48f75aa8b7d85fb426ebe3ca61139fdc9;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_QtEvents.h b/src/XGUI/XGUI_QtEvents.h index 5c415a278..0a3528bd7 100644 --- a/src/XGUI/XGUI_QtEvents.h +++ b/src/XGUI/XGUI_QtEvents.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> + /* * XGUI_QEvents.h * @@ -16,35 +18,36 @@ #include #include +/** +* \ingroup GUI +* Class of event to send application events in multi thread environment +*/ class XGUI_EXPORT PostponeMessageQtEvent : public QEvent { public: + /// An event type static QEvent::Type PostponeMessageQtEventType; - //TODO(mpv): ModelAPI_Document is taken here for example - //the commented code should be ok when you implement boost::shared_ptr on Events_Message - //the same for #1-4 - PostponeMessageQtEvent(boost::shared_ptr theDoc) - //PostponeMessageQtEvent(boost::shared_ptr theMessage) + /// Constructor + /// \param theMessage an event message to send + PostponeMessageQtEvent(const std::shared_ptr& theMessage) : QEvent(PostponeMessageQtEventType), - //TODO(mpv): #1 - //myMessage(theMessage) - myTestDoc(theDoc) + myMessage(theMessage) { } + + /// Returns type of the event static QEvent::Type type() { return PostponeMessageQtEventType; } - //TODO(mpv): #2 - //boost::shared_ptr postponedMessage(); - boost::shared_ptr resultDoc(); + /// Returns current messasge + std::shared_ptr postponedMessage(); private: - //TODO(mpv): #3 - //boost::shared_ptr myMessage; - boost::shared_ptr myTestDoc; + /// Message + std::shared_ptr myMessage; }; #endif /* XGUI_QEVENTS_H_ */