diff options
| author | Pixel <Pixel> | 2001-11-15 14:52:43 +0000 | 
|---|---|---|
| committer | Pixel <Pixel> | 2001-11-15 14:52:43 +0000 | 
| commit | 3f720784d55707024fff675a5238fde0168d1a40 (patch) | |
| tree | 84a5b9843ede69aaf76cd9b791686b2a3ea7c3d7 /lib/Message.cc | |
| parent | 8694409f2a5531e9f3263e8a42248a3ca91ac14f (diff) | |
More work into TaskMan...
Diffstat (limited to 'lib/Message.cc')
| -rw-r--r-- | lib/Message.cc | 21 | 
1 files changed, 14 insertions, 7 deletions
| 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 << "<CENTER><FORM METHOD=\"POST\" ACTION=\"/bin/" << (Next ? Next->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 << "<CENTER><FORM METHOD=\"POST\" ACTION=\"/bin/" << (Next ? Next->GetURL() : "start") << "\">" << endnl <<      "<INPUT TYPE=\"SUBMIT\" VALUE=\"     Ok     \">" << endnl; -    v->Dump(h); -    (*h) << "</FORM></CENTER>" << endnl; -    SendFoot(h); -     +    v->Dump(b); +    (*b) << "</FORM></CENTER>" << endnl; +    SendFoot(b); +      Accessed(); +     +    return t;  }  String Message::GetTitle(void) { | 
