source: trunk/gsdl/src/recpt/statusaction.h@ 2939

Last change on this file since 2939 was 2939, checked in by sjboddie, 22 years ago

All error messages now go to error.txt (i.e. did away with errout.txt and
initout.txt and put what used to go to them to error.txt instead)

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 KB
RevLine 
[157]1/**********************************************************************
2 *
3 * statusaction.h --
4 * Copyright (C) 1999 The New Zealand Digital Library Project
5 *
[533]6 * A component of the Greenstone digital library software
7 * from the New Zealand Digital Library Project at the
8 * University of Waikato, New Zealand.
[157]9 *
[533]10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 *
[157]24 *********************************************************************/
25
26
27#ifndef STATUSACTION_H
28#define STATUSACTION_H
29
30
31#include "gsdlconf.h"
32#include "action.h"
33#include "receptionist.h"
34
35
36class statusaction : public action {
37protected:
38 bool disabled;
39 receptionist *recpt;
40
[200]41 void output_frameset (cgiargsclass &args, displayclass &disp,
42 outconvertclass &outconvert,
43 ostream &textout, ostream &logout);
[1129]44
[200]45 void output_select (cgiargsclass &args, displayclass &disp,
46 outconvertclass &outconvert,
47 ostream &textout, ostream &logout);
48
[1129]49 void output_welcome (cgiargsclass &args, recptprotolistclass *protos,
50 displayclass &disp, outconvertclass &outconvert,
51 ostream &textout, ostream &logout);
52
[197]53 void output_generalinfo (cgiargsclass &args, displayclass &disp,
54 outconvertclass &outconvert,
55 ostream &textout, ostream &logout);
[1129]56
[197]57 void output_argumentinfo (cgiargsclass &args, displayclass &disp,
58 outconvertclass &outconvert,
59 ostream &textout, ostream &logout);
[1129]60
[197]61 void output_actioninfo (cgiargsclass &args, displayclass &disp,
62 outconvertclass &outconvert,
63 ostream &textout, ostream &logout);
[1129]64
[1254]65 void output_browserinfo (cgiargsclass &args, displayclass &disp,
66 outconvertclass &outconvert,
67 ostream &textout, ostream &logout);
68
[197]69 void output_protocolinfo (cgiargsclass &args, displayclass &disp,
70 outconvertclass &outconvert,
71 ostream &textout, ostream &logout);
[1129]72
[197]73 void output_collectioninfo (cgiargsclass &args, displayclass &disp,
74 outconvertclass &outconvert,
75 ostream &textout, ostream &logout);
[1129]76
[1837]77 void output_usagelog (cgiargsclass &args, displayclass &disp,
78 outconvertclass &outconvert,
79 ostream &textout, ostream &logout);
80
[197]81 void output_errorlog (cgiargsclass &args, displayclass &disp,
82 outconvertclass &outconvert,
83 ostream &textout, ostream &logout);
84
[1794]85 void output_gsdlsite (cgiargsclass &args, displayclass &disp,
86 outconvertclass &outconvert,
87 ostream &textout, ostream &logout);
88
89 void output_maincfg (cgiargsclass &args, displayclass &disp,
90 outconvertclass &outconvert,
91 ostream &textout, ostream &logout);
92
93 void change_maincfg (cgiargsclass &args, displayclass &disp,
94 outconvertclass &outconvert,
95 ostream &textout, ostream &logout);
96
[200]97 void output_errorpage (outconvertclass &outconvert,
98 ostream &textout, ostream &logout,
99 text_t message);
100
[157]101public:
102 statusaction ();
103 virtual ~statusaction ();
104
105 text_t get_action_name () {return "status";}
[760]106
[157]107 void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
[760]108
[261]109 bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
110 ostream &logout);
[760]111
112 void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
113 response_t &response, text_t &response_data,
114 ostream &logout);
115
[1794]116
117 void define_internal_macros (displayclass &disp, cgiargsclass &args,
118 recptprotolistclass *protos, ostream &logout);
119
[760]120 bool do_action (cgiargsclass &args, recptprotolistclass *protos,
121 browsermapclass *browsers, displayclass &disp,
[421]122 outconvertclass &outconvert, ostream &textout,
123 ostream &logout);
[172]124
[157]125 void configure (const text_t &key, const text_tarray &cfgline);
126};
127
128
129#endif
Note: See TracBrowser for help on using the repository browser.