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

Last change on this file since 1837 was 1837, checked in by sjboddie, 23 years ago

Made a few cosmetic changes to the "Administration" pages and added the
ability to view the last 100 lines of the usage log. This meant making a
change to the file_tail() function to allow for the very long lines that
occur in the log file.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1/**********************************************************************
2 *
3 * statusaction.h --
4 * Copyright (C) 1999 The New Zealand Digital Library Project
5 *
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.
9 *
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 *
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
41 void output_frameset (cgiargsclass &args, displayclass &disp,
42 outconvertclass &outconvert,
43 ostream &textout, ostream &logout);
44
45 void output_select (cgiargsclass &args, displayclass &disp,
46 outconvertclass &outconvert,
47 ostream &textout, ostream &logout);
48
49 void output_welcome (cgiargsclass &args, recptprotolistclass *protos,
50 displayclass &disp, outconvertclass &outconvert,
51 ostream &textout, ostream &logout);
52
53 void output_generalinfo (cgiargsclass &args, displayclass &disp,
54 outconvertclass &outconvert,
55 ostream &textout, ostream &logout);
56
57 void output_argumentinfo (cgiargsclass &args, displayclass &disp,
58 outconvertclass &outconvert,
59 ostream &textout, ostream &logout);
60
61 void output_actioninfo (cgiargsclass &args, displayclass &disp,
62 outconvertclass &outconvert,
63 ostream &textout, ostream &logout);
64
65 void output_browserinfo (cgiargsclass &args, displayclass &disp,
66 outconvertclass &outconvert,
67 ostream &textout, ostream &logout);
68
69 void output_protocolinfo (cgiargsclass &args, displayclass &disp,
70 outconvertclass &outconvert,
71 ostream &textout, ostream &logout);
72
73 void output_collectioninfo (cgiargsclass &args, displayclass &disp,
74 outconvertclass &outconvert,
75 ostream &textout, ostream &logout);
76
77 void output_usagelog (cgiargsclass &args, displayclass &disp,
78 outconvertclass &outconvert,
79 ostream &textout, ostream &logout);
80
81 void output_initlog (cgiargsclass &args, displayclass &disp,
82 outconvertclass &outconvert,
83 ostream &textout, ostream &logout);
84
85 void output_errorlog (cgiargsclass &args, displayclass &disp,
86 outconvertclass &outconvert,
87 ostream &textout, ostream &logout);
88
89 void output_gsdlsite (cgiargsclass &args, displayclass &disp,
90 outconvertclass &outconvert,
91 ostream &textout, ostream &logout);
92
93 void output_maincfg (cgiargsclass &args, displayclass &disp,
94 outconvertclass &outconvert,
95 ostream &textout, ostream &logout);
96
97 void change_maincfg (cgiargsclass &args, displayclass &disp,
98 outconvertclass &outconvert,
99 ostream &textout, ostream &logout);
100
101 void output_errorpage (outconvertclass &outconvert,
102 ostream &textout, ostream &logout,
103 text_t message);
104
105public:
106 statusaction ();
107 virtual ~statusaction ();
108
109 text_t get_action_name () {return "status";}
110
111 void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
112
113 bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
114 ostream &logout);
115
116 void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
117 response_t &response, text_t &response_data,
118 ostream &logout);
119
120
121 void define_internal_macros (displayclass &disp, cgiargsclass &args,
122 recptprotolistclass *protos, ostream &logout);
123
124 bool do_action (cgiargsclass &args, recptprotolistclass *protos,
125 browsermapclass *browsers, displayclass &disp,
126 outconvertclass &outconvert, ostream &textout,
127 ostream &logout);
128
129 void configure (const text_t &key, const text_tarray &cfgline);
130};
131
132
133#endif
Note: See TracBrowser for help on using the repository browser.