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/Menu.cc | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'lib/Menu.cc') diff --git a/lib/Menu.cc b/lib/Menu.cc index 7488d1d..f804cef 100644 --- a/lib/Menu.cc +++ b/lib/Menu.cc @@ -1,24 +1,31 @@ #include "Menu.h" #include "HttpServ.h" +#include "CopyJob.h" +#include "Buffer.h" +#include "config.h" Menu::Menu(const String & t, const String & U, String * ts, Action ** as, int nb) : Action(U), tit(t), lt(ts), la(as), nba(nb) { } -void Menu::Do(Variables * v, Handle * h) { +Task * Menu::Do(Variables * v, Handle * h) { int i, f = 0; + Handle * b = new Buffer(); + Task * t = new CopyJob(b, h, -1, true); - SendHead(h); - (*h) << "
" << endnl; + SendHead(b); + (*b) << "
" << endnl; for (i = 0; i < nba; i++) { - (*h) << "" << endnl; f = f ? 0 : 1; } - (*h) << "
" << (i + 1) << "" + (*b) << "
" << (i + 1) << "" "GetURL() : "start") << "\">" << lt[i] << "
" << endnl; - SendFoot(h); + (*b) << "" << endnl; + SendFoot(b); Accessed(); + + return t; } String Menu::GetTitle(void) { -- cgit v1.2.3