X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_Loop.h;h=adc88835198dda23e4121ac4dd07620217475e19;hb=5303dd1fa6ad4411e38f8d36103c72109957e05c;hp=af5a0c0ddaca0fbb40b89dfb31decdb7c48f08fc;hpb=5c861257d29de904a1418488b65e6100cd078433;p=modules%2Fshaper.git diff --git a/src/Events/Events_Loop.h b/src/Events/Events_Loop.h index af5a0c0dd..adc888351 100644 --- a/src/Events/Events_Loop.h +++ b/src/Events/Events_Loop.h @@ -54,6 +54,7 @@ class Events_Loop EVENTS_EXPORT static Events_ID eventByName(const char* theName); //! Allows to send an event + //! \param theMessage the enevt message to send //! \param isGroup is true for grouping messages if possible EVENTS_EXPORT void send(const std::shared_ptr& theMessage, bool isGroup = true); @@ -67,8 +68,10 @@ class Events_Loop //! Allows to disable flushes: needed in synchronization of document mechanism //! (to synchronize all and only then flush create, update, etc in correct order) - EVENTS_EXPORT void activateFlushes(const bool theActivate); - + //! \param theActivate a state about flushe is active. If false, the flush is disabled + //! \return the previous active flush state + EVENTS_EXPORT bool activateFlushes(const bool theActivate); + //! Clears all collected messages EVENTS_EXPORT void clear(const Events_ID& theID);