diff options
author | pixel <pixel> | 2007-09-23 12:20:15 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-09-23 12:20:15 +0000 |
commit | b862c5ec77a0f8fe40bd6c12b65a7739bdec2b00 (patch) | |
tree | dfe3d12b97f9c9e5de10e7c86446995520906ffa | |
parent | 36350232b4f4c7ddc7f3b9f65da81692e9f02183 (diff) |
Adding SetMsg to the Message class.
-rw-r--r-- | include/Message.h | 3 | ||||
-rw-r--r-- | lib/Message.cc | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/include/Message.h b/include/Message.h index 690ec06..6f3234d 100644 --- a/include/Message.h +++ b/include/Message.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Message.h,v 1.12 2007-05-30 11:57:08 pixel Exp $ */ +/* $Id: Message.h,v 1.13 2007-09-23 12:20:15 pixel Exp $ */ #ifndef __MESSAGE_H__ #define __MESSAGE_H__ @@ -32,6 +32,7 @@ class Message : public Action { virtual ~Message() { } virtual String GetTitle(); virtual Task * Do(Variables *, Variables *, Handle *); + void SetMsg(const String &); private: String tit, msg; diff --git a/lib/Message.cc b/lib/Message.cc index 893f48f..45bca3d 100644 --- a/lib/Message.cc +++ b/lib/Message.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Message.cc,v 1.7 2007-05-30 11:57:10 pixel Exp $ */ +/* $Id: Message.cc,v 1.8 2007-09-23 12:20:15 pixel Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -49,3 +49,7 @@ Task * Message::Do(Variables * v, Variables *, Handle * h) { String Message::GetTitle(void) { return tit; } + +void Message::SetMsg(const String & _msg) { + msg = _msg; +} |