Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2011, 11:37:22 PM (13 years ago)
Author:
dafrick
Message:

NotificationListener is new an entity which is informed of new notifications. The NotificationManager is, so far, the only NotificationListener. This means that Notifications can now be sent from within orxonox (though not libraries or external).
Also introduced notification commands to affect the NotificationQueues in more ways than just have them display messages (e.g. clearing them).
Added a message type which allows to send Notifications of different importance, allowing the NotificationQueus to display them differently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutoriallevel2/src/modules/notifications/NotificationQueue.cc

    r8374 r8445  
    5656    @param senders
    5757        The senders that are targets of this NotificationQueue, i.e. the names of senders whose Notifications this NotificationQueue displays.
    58         The senders need to be seperated by commas.
     58        The senders need to be separated by commas.
    5959    @param size
    6060        The size (the maximum number of displayed Notifications) of this NotificationQueue.
     
    304304        Clears the NotificationQueue by removing all NotificationContainers.
    305305    @param noGraphics
    306         If this is eset to true the GUI is not informed of the clearing of the NotificationQueue. This is needed only internally.
     306        If this is set to true the GUI is not informed of the clearing of the NotificationQueue. This is needed only internally.
    307307    */
    308308    void NotificationQueue::clear(bool noGraphics)
     
    369369    /**
    370370    @brief
    371         Produces all targets of the NotificationQueue concatinated as string, with commas (',') as seperators.
     371        Produces all targets of the NotificationQueue concatenated as string, with commas (',') as separators.
    372372    @return
    373373        Returns the targets as a string.
     
    395395        The targets are the senders whose Notifications are displayed in this queue.
    396396    @param targets
    397         Accepts a string of targets, each seperated by commas (','), spaces are ignored.
     397        Accepts a string of targets, each separated by commas (','), spaces are ignored.
    398398    */
    399399    void NotificationQueue::setTargets(const std::string & targets)
     
    412412        }
    413413    }
     414   
     415    void NotificationQueue::tidy(void)
     416    {
     417        while(this->size_ > 0)
     418            this->pop();
     419    }
    414420
    415421}
Note: See TracChangeset for help on using the changeset viewer.