Changeset 7474 for code/trunk/src/modules/notifications/dispatchers
- Timestamp:
- Sep 21, 2010, 11:15:44 PM (14 years ago)
- Location:
- code/trunk/src/modules/notifications/dispatchers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/notifications/dispatchers/CommandNotification.cc
r7456 r7474 55 55 56 56 this->setSender("commandNotification"); 57 this->registerVariables(); 57 58 } 58 59 … … 77 78 XMLPortParam(CommandNotification, "preMessage", setPreMessage, getPreMessage, xmlelement, mode); 78 79 XMLPortParam(CommandNotification, "postMessage", setPostMessage, getPostMessage, xmlelement, mode); 80 } 81 82 void CommandNotification::registerVariables(void) 83 { 84 registerVariable(this->command_, VariableDirection::ToClient); 85 registerVariable(this->preMessage_, VariableDirection::ToClient); 86 registerVariable(this->postMessage_, VariableDirection::ToClient); 79 87 } 80 88 -
code/trunk/src/modules/notifications/dispatchers/CommandNotification.h
r7456 r7474 38 38 #include "notifications/NotificationsPrereqs.h" 39 39 40 #include <string> 40 41 #include "notifications/NotificationDispatcher.h" 41 #include <string>42 42 43 43 namespace orxonox { … … 86 86 std::string postMessage_; //!< The last part of the displayed message. 87 87 88 void registerVariables(void); 89 88 90 /** 89 91 @brief Set the command, whose key is displayed. -
code/trunk/src/modules/notifications/dispatchers/SimpleNotification.cc
r7456 r7474 50 50 51 51 this->setSender("simpleNotification"); 52 53 this->setSyncMode(0x0); 52 54 } 53 55
Note: See TracChangeset
for help on using the changeset viewer.