[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 |
|
---|
[7371] | 26 | #include "gsdl_modules_cfg.h"
|
---|
| 27 | #ifdef GSDL_USE_STATUS_ACTION
|
---|
[157] | 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 |
|
---|
[200] | 43 | void output_frameset (cgiargsclass &args, displayclass &disp,
|
---|
| 44 | outconvertclass &outconvert,
|
---|
| 45 | ostream &textout, ostream &logout);
|
---|
[1129] | 46 |
|
---|
[200] | 47 | void output_select (cgiargsclass &args, displayclass &disp,
|
---|
| 48 | outconvertclass &outconvert,
|
---|
| 49 | ostream &textout, ostream &logout);
|
---|
| 50 |
|
---|
[1129] | 51 | void output_welcome (cgiargsclass &args, recptprotolistclass *protos,
|
---|
| 52 | displayclass &disp, outconvertclass &outconvert,
|
---|
| 53 | ostream &textout, ostream &logout);
|
---|
| 54 |
|
---|
[197] | 55 | void output_generalinfo (cgiargsclass &args, displayclass &disp,
|
---|
| 56 | outconvertclass &outconvert,
|
---|
| 57 | ostream &textout, ostream &logout);
|
---|
[1129] | 58 |
|
---|
[197] | 59 | void output_argumentinfo (cgiargsclass &args, displayclass &disp,
|
---|
| 60 | outconvertclass &outconvert,
|
---|
| 61 | ostream &textout, ostream &logout);
|
---|
[1129] | 62 |
|
---|
[197] | 63 | void output_actioninfo (cgiargsclass &args, displayclass &disp,
|
---|
| 64 | outconvertclass &outconvert,
|
---|
| 65 | ostream &textout, ostream &logout);
|
---|
[1129] | 66 |
|
---|
[1254] | 67 | void output_browserinfo (cgiargsclass &args, displayclass &disp,
|
---|
| 68 | outconvertclass &outconvert,
|
---|
| 69 | ostream &textout, ostream &logout);
|
---|
| 70 |
|
---|
[197] | 71 | void output_protocolinfo (cgiargsclass &args, displayclass &disp,
|
---|
| 72 | outconvertclass &outconvert,
|
---|
| 73 | ostream &textout, ostream &logout);
|
---|
[1129] | 74 |
|
---|
[197] | 75 | void output_collectioninfo (cgiargsclass &args, displayclass &disp,
|
---|
| 76 | outconvertclass &outconvert,
|
---|
| 77 | ostream &textout, ostream &logout);
|
---|
[1129] | 78 |
|
---|
[1837] | 79 | void output_usagelog (cgiargsclass &args, displayclass &disp,
|
---|
| 80 | outconvertclass &outconvert,
|
---|
| 81 | ostream &textout, ostream &logout);
|
---|
| 82 |
|
---|
[197] | 83 | void output_errorlog (cgiargsclass &args, displayclass &disp,
|
---|
| 84 | outconvertclass &outconvert,
|
---|
| 85 | ostream &textout, ostream &logout);
|
---|
| 86 |
|
---|
[18651] | 87 | void output_llssite (cgiargsclass &args, displayclass &disp,
|
---|
[1794] | 88 | outconvertclass &outconvert,
|
---|
| 89 | ostream &textout, ostream &logout);
|
---|
| 90 |
|
---|
| 91 | void output_maincfg (cgiargsclass &args, displayclass &disp,
|
---|
| 92 | outconvertclass &outconvert,
|
---|
| 93 | ostream &textout, ostream &logout);
|
---|
| 94 |
|
---|
| 95 | void change_maincfg (cgiargsclass &args, displayclass &disp,
|
---|
| 96 | outconvertclass &outconvert,
|
---|
| 97 | ostream &textout, ostream &logout);
|
---|
| 98 |
|
---|
[200] | 99 | void output_errorpage (outconvertclass &outconvert,
|
---|
| 100 | ostream &textout, ostream &logout,
|
---|
| 101 | text_t message);
|
---|
| 102 |
|
---|
[157] | 103 | public:
|
---|
| 104 | statusaction ();
|
---|
| 105 | virtual ~statusaction ();
|
---|
| 106 |
|
---|
| 107 | text_t get_action_name () {return "status";}
|
---|
[760] | 108 |
|
---|
[157] | 109 | void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
|
---|
[760] | 110 |
|
---|
[261] | 111 | bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
|
---|
[3546] | 112 | recptprotolistclass *protos, ostream &logout);
|
---|
[760] | 113 |
|
---|
| 114 | void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
|
---|
| 115 | response_t &response, text_t &response_data,
|
---|
| 116 | ostream &logout);
|
---|
| 117 |
|
---|
[1794] | 118 |
|
---|
| 119 | void define_internal_macros (displayclass &disp, cgiargsclass &args,
|
---|
| 120 | recptprotolistclass *protos, ostream &logout);
|
---|
| 121 |
|
---|
[760] | 122 | bool do_action (cgiargsclass &args, recptprotolistclass *protos,
|
---|
| 123 | browsermapclass *browsers, displayclass &disp,
|
---|
[421] | 124 | outconvertclass &outconvert, ostream &textout,
|
---|
| 125 | ostream &logout);
|
---|
[172] | 126 |
|
---|
[157] | 127 | void configure (const text_t &key, const text_tarray &cfgline);
|
---|
| 128 | };
|
---|
| 129 |
|
---|
| 130 |
|
---|
[7371] | 131 | #endif //!STATUSACTION_H
|
---|
| 132 | #endif //GSDL_USE_STATUS_ACTION
|
---|