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 | * $Id: statusaction.h 533 1999-09-07 04:57:01Z sjboddie $
|
---|
25 | *
|
---|
26 | *********************************************************************/
|
---|
27 |
|
---|
28 |
|
---|
29 | #ifndef STATUSACTION_H
|
---|
30 | #define STATUSACTION_H
|
---|
31 |
|
---|
32 |
|
---|
33 | #include "gsdlconf.h"
|
---|
34 | #include "action.h"
|
---|
35 | #include "receptionist.h"
|
---|
36 |
|
---|
37 |
|
---|
38 | class statusaction : public action {
|
---|
39 | protected:
|
---|
40 | bool disabled;
|
---|
41 | receptionist *recpt;
|
---|
42 |
|
---|
43 | void output_frameset (cgiargsclass &args, displayclass &disp,
|
---|
44 | outconvertclass &outconvert,
|
---|
45 | ostream &textout, ostream &logout);
|
---|
46 | void output_select (cgiargsclass &args, displayclass &disp,
|
---|
47 | outconvertclass &outconvert,
|
---|
48 | ostream &textout, ostream &logout);
|
---|
49 |
|
---|
50 | void output_generalinfo (cgiargsclass &args, displayclass &disp,
|
---|
51 | outconvertclass &outconvert,
|
---|
52 | ostream &textout, ostream &logout);
|
---|
53 | void output_argumentinfo (cgiargsclass &args, displayclass &disp,
|
---|
54 | outconvertclass &outconvert,
|
---|
55 | ostream &textout, ostream &logout);
|
---|
56 | void output_actioninfo (cgiargsclass &args, displayclass &disp,
|
---|
57 | outconvertclass &outconvert,
|
---|
58 | ostream &textout, ostream &logout);
|
---|
59 | void output_protocolinfo (cgiargsclass &args, displayclass &disp,
|
---|
60 | outconvertclass &outconvert,
|
---|
61 | ostream &textout, ostream &logout);
|
---|
62 | void output_collectioninfo (cgiargsclass &args, displayclass &disp,
|
---|
63 | outconvertclass &outconvert,
|
---|
64 | ostream &textout, ostream &logout);
|
---|
65 | void output_initlog (cgiargsclass &args, displayclass &disp,
|
---|
66 | outconvertclass &outconvert,
|
---|
67 | ostream &textout, ostream &logout);
|
---|
68 | void output_errorlog (cgiargsclass &args, displayclass &disp,
|
---|
69 | outconvertclass &outconvert,
|
---|
70 | ostream &textout, ostream &logout);
|
---|
71 |
|
---|
72 | void output_errorpage (outconvertclass &outconvert,
|
---|
73 | ostream &textout, ostream &logout,
|
---|
74 | text_t message);
|
---|
75 |
|
---|
76 | public:
|
---|
77 | statusaction ();
|
---|
78 | virtual ~statusaction ();
|
---|
79 |
|
---|
80 | text_t get_action_name () {return "status";}
|
---|
81 | void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
|
---|
82 | bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
|
---|
83 | ostream &logout);
|
---|
84 | void get_cgihead_info (cgiargsclass &args, response_t &response,
|
---|
85 | text_t &response_data, ostream &logout);
|
---|
86 | bool do_action (cgiargsclass &args, const ColInfoResponse_t &collectinfo,
|
---|
87 | recptproto *collectproto, displayclass &disp,
|
---|
88 | outconvertclass &outconvert, ostream &textout,
|
---|
89 | ostream &logout);
|
---|
90 |
|
---|
91 | void configure (const text_t &key, const text_tarray &cfgline);
|
---|
92 | };
|
---|
93 |
|
---|
94 |
|
---|
95 | #endif
|
---|