Changeset 7484 for code/trunk/src/orxonox/interfaces
- Timestamp:
- Sep 23, 2010, 1:00:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/interfaces/NotificationListener.h
r7417 r7484 28 28 29 29 /** 30 @file 30 @file NotificationListener.h 31 31 @brief Definition of the NotificationListener class. 32 @ingroup Notifications 32 33 */ 33 34 … … 52 53 @brief 53 54 NotificationListener interface. 55 56 The NotificationListener interface presents a means to being informed when @ref orxonox::Notification "Notifications" in the target set of this NotificationListener change. (e.g. @ref orxonox::Notification "Notifications" were added or removed) 57 When inheriting from a NotificationListener it is important to register (in the constructor) and unregister (in the destructor) it to and from the @ref orxonox::NotificationManager "NotificationManager". 54 58 @author 55 59 Fabian 'x3n' Landau 56 60 */ 61 //TODO: Needed? Remove or move some NotificationQueue things over here. 57 62 class _OrxonoxExport NotificationListener : virtual public OrxonoxClass 58 63 { … … 61 66 virtual ~NotificationListener() {} 62 67 63 virtual const std::set<std::string> & getTargetsSet() = 0; 68 /** 69 @brief Get the senders that are targets of this NotificationListener. 70 @return Returns the set of senders that are targets of this NotificationListener. 71 */ 72 virtual const std::set<std::string> & getTargetsSet(void) = 0; 73 74 /** 75 @brief Updates the whole NotificationListener. 76 This is called by the @ref orxonox::NotificationManager "NotificationManager" when the @ref orxonox::Notification "Notifications" have changed so much, that the NotificationListener may have to re-initialize his operations. 77 */ 64 78 virtual void update(void) = 0; 79 /** 80 @brief Updates the NotificationListener, when a new Notification has come in at the specified time. 81 @param notification A pointer to the @ref orxonox::Notification "Notification". 82 @param time The time the @ref orxonox::Notification "Notification" has come in. 83 */ 65 84 virtual void update(Notification* notification, const std::time_t & time) = 0; 66 85 };
Note: See TracChangeset
for help on using the changeset viewer.