From b862c5ec77a0f8fe40bd6c12b65a7739bdec2b00 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 23 Sep 2007 12:20:15 +0000 Subject: Adding SetMsg to the Message class. --- include/Message.h | 3 ++- 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; +} -- cgit v1.2.3