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 |
|
---|
36 | class statusaction : public action {
|
---|
37 | protected:
|
---|
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_initlog (cgiargsclass &args, displayclass &disp,
|
---|
78 | outconvertclass &outconvert,
|
---|
79 | ostream &textout, ostream &logout);
|
---|
80 |
|
---|
81 | void output_errorlog (cgiargsclass &args, displayclass &disp,
|
---|
82 | outconvertclass &outconvert,
|
---|
83 | ostream &textout, ostream &logout);
|
---|
84 |
|
---|
85 | void output_errorpage (outconvertclass &outconvert,
|
---|
86 | ostream &textout, ostream &logout,
|
---|
87 | text_t message);
|
---|
88 |
|
---|
89 | public:
|
---|
90 | statusaction ();
|
---|
91 | virtual ~statusaction ();
|
---|
92 |
|
---|
93 | text_t get_action_name () {return "status";}
|
---|
94 |
|
---|
95 | void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
|
---|
96 |
|
---|
97 | bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
|
---|
98 | ostream &logout);
|
---|
99 |
|
---|
100 | void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
|
---|
101 | response_t &response, text_t &response_data,
|
---|
102 | ostream &logout);
|
---|
103 |
|
---|
104 | bool do_action (cgiargsclass &args, recptprotolistclass *protos,
|
---|
105 | browsermapclass *browsers, displayclass &disp,
|
---|
106 | outconvertclass &outconvert, ostream &textout,
|
---|
107 | ostream &logout);
|
---|
108 |
|
---|
109 | void configure (const text_t &key, const text_tarray &cfgline);
|
---|
110 | };
|
---|
111 |
|
---|
112 |
|
---|
113 | #endif
|
---|