From 3f720784d55707024fff675a5238fde0168d1a40 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 15 Nov 2001 14:52:43 +0000 Subject: More work into TaskMan... --- lib/Message.cc | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'lib/Message.cc') diff --git a/lib/Message.cc b/lib/Message.cc index 1ede8fb..acd7933 100644 --- a/lib/Message.cc +++ b/lib/Message.cc @@ -1,19 +1,26 @@ #include "HttpServ.h" #include "Message.h" +#include "Buffer.h" +#include "CopyJob.h" #include "config.h" Message::Message(const String & t, const String & m, const String & U, Action * n) : Action(U), tit(t), msg(m), Next(n) { } -void Message::Do(Variables * v, Handle * h) { - SendHead(h); - (*h) << msg << "
GetURL() : "start") << "\">" << endnl << +Task * Message::Do(Variables * v, Handle * h) { + Handle * b = new Buffer(); + Task * t = new CopyJob(b, h, -1, true); + + SendHead(b); + (*b) << msg << "
GetURL() : "start") << "\">" << endnl << "" << endnl; - v->Dump(h); - (*h) << "
" << endnl; - SendFoot(h); - + v->Dump(b); + (*b) << "
" << endnl; + SendFoot(b); + Accessed(); + + return t; } String Message::GetTitle(void) { -- cgit v1.2.3