Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setDisplayed has to be called in order to synchronize internal state of the object
[modules/shaper.git]
/
src
/
Events
/
Events_Loop.h
diff --git
a/src/Events/Events_Loop.h
b/src/Events/Events_Loop.h
index c8b7798c0e06944cdc3348fdbe6e60126a662ee1..a11426f1b99263f8581a0d4b5640c14db9167bd3 100644
(file)
--- a/
src/Events/Events_Loop.h
+++ b/
src/Events/Events_Loop.h
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: Events_Loop.hxx
// Created: Thu Mar 13 2014
// Author: Mikhail PONIKAROV
// File: Events_Loop.hxx
// Created: Thu Mar 13 2014
// Author: Mikhail PONIKAROV
@@
-14,7
+16,7
@@
class Events_MessageGroup;
class Events_MessageGroup;
-/**\class Events_Lo
p
p
+/**\class Events_Lo
o
p
* \ingroup EventsLoop
* \brief Base class that manages the receiving and sending of all
* not Qt-events in the application.
* \ingroup EventsLoop
* \brief Base class that manages the receiving and sending of all
* not Qt-events in the application.
@@
-52,6
+54,7
@@
class Events_Loop
EVENTS_EXPORT static Events_ID eventByName(const char* theName);
//! Allows to send an event
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<Events_Message>& theMessage, bool isGroup = true);
//! \param isGroup is true for grouping messages if possible
EVENTS_EXPORT void send(const std::shared_ptr<Events_Message>& theMessage, bool isGroup = true);
@@
-72,6
+75,11
@@
class Events_Loop
//! Enables flush without grouping for the given message
EVENTS_EXPORT void autoFlush(const Events_ID& theID, const bool theAuto = true);
//! Enables flush without grouping for the given message
EVENTS_EXPORT void autoFlush(const Events_ID& theID, const bool theAuto = true);
+
+ //! Returns true if the evement is flushed right now
+ EVENTS_EXPORT bool isFlushed(const Events_ID& theID);
+ //! Sets the flag that the event is flished right now
+ EVENTS_EXPORT void setFlushed(const Events_ID& theID, const bool theValue);
};
#endif
};
#endif