| 1 |
#ifndef HEADER_SIMPLEMSG_H |
| 2 |
#define HEADER_SIMPLEMSG_H |
| 3 |
|
| 4 |
#include "BaseMsg.h" |
| 5 |
#include "BaseListener.h" |
| 6 |
|
| 7 |
/** |
| 8 |
* Simple text messgage. |
| 9 |
*/ |
| 10 |
class SimpleMsg : public BaseMsg { |
| 11 |
public: |
| 12 |
CLONE(SimpleMsg); |
| 13 |
SimpleMsg(BaseListener *listener, const std::string &name) |
| 14 |
: BaseMsg(listener->getName(), name) {} |
| 15 |
SimpleMsg(const std::string &listenerName, const std::string &name) |
| 16 |
: BaseMsg(listenerName, name) {} |
| 17 |
|
| 18 |
virtual void sendActual(BaseListener *listener) const |
| 19 |
{ |
| 20 |
listener->receiveSimple(this); |
| 21 |
} |
| 22 |
}; |
| 23 |
|
| 24 |
|
| 25 |
#endif |