[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 |
|
---|
| 36 | class statusaction : public action {
|
---|
| 37 | protected:
|
---|
| 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_initlog (cgiargsclass &args, displayclass &disp,
|
---|
| 82 | outconvertclass &outconvert,
|
---|
| 83 | ostream &textout, ostream &logout);
|
---|
[1129] | 84 |
|
---|
[197] | 85 | void output_errorlog (cgiargsclass &args, displayclass &disp,
|
---|
| 86 | outconvertclass &outconvert,
|
---|
| 87 | ostream &textout, ostream &logout);
|
---|
| 88 |
|
---|
[1794] | 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 |
|
---|
[200] | 101 | void output_errorpage (outconvertclass &outconvert,
|
---|
| 102 | ostream &textout, ostream &logout,
|
---|
| 103 | text_t message);
|
---|
| 104 |
|
---|
[157] | 105 | public:
|
---|
| 106 | statusaction ();
|
---|
| 107 | virtual ~statusaction ();
|
---|
| 108 |
|
---|
| 109 | text_t get_action_name () {return "status";}
|
---|
[760] | 110 |
|
---|
[157] | 111 | void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
|
---|
[760] | 112 |
|
---|
[261] | 113 | bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
|
---|
| 114 | ostream &logout);
|
---|
[760] | 115 |
|
---|
| 116 | void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
|
---|
| 117 | response_t &response, text_t &response_data,
|
---|
| 118 | ostream &logout);
|
---|
| 119 |
|
---|
[1794] | 120 |
|
---|
| 121 | void define_internal_macros (displayclass &disp, cgiargsclass &args,
|
---|
| 122 | recptprotolistclass *protos, ostream &logout);
|
---|
| 123 |
|
---|
[760] | 124 | bool do_action (cgiargsclass &args, recptprotolistclass *protos,
|
---|
| 125 | browsermapclass *browsers, displayclass &disp,
|
---|
[421] | 126 | outconvertclass &outconvert, ostream &textout,
|
---|
| 127 | ostream &logout);
|
---|
[172] | 128 |
|
---|
[157] | 129 | void configure (const text_t &key, const text_tarray &cfgline);
|
---|
| 130 | };
|
---|
| 131 |
|
---|
| 132 |
|
---|
| 133 | #endif
|
---|