source: trunk/gsdl/src/recpt/collectoraction.h@ 1432

Last change on this file since 1432 was 1432, checked in by sjboddie, 24 years ago

Lots of changes - mostly to get collectoraction working

  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/**********************************************************************
2 *
3 * collectoraction.h --
4 * Copyright (C) 2000 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 COLLECTORACTION_H
28#define COLLECTORACTION_H
29
30#include "action.h"
31#include "receptionist.h"
32
33class collectoraction : public action {
34
35protected:
36
37 receptionist *recpt;
38 char *gsdlosc;
39 char *gsdlhomec;
40
41 bool do_mkcol;
42 bool clone_failed;
43
44 text_t get_button (const text_t &thispage, const text_t &color,
45 const text_t &type, bool enabled);
46
47 void set_fullnamemenu (displayclass &disp, cgiargsclass &args,
48 recptprotolistclass *protos, ostream &logout);
49
50 void set_cfgfile (displayclass &disp, const text_t &dirname, ostream &logout);
51
52 void update_cfgfile_clone (cgiargsclass &args, ostream &logout);
53
54 void update_cfgfile_partial (cgiargsclass &args, ostream &logout);
55
56 void update_cfgfile_complete (cgiargsclass &args, ostream &logout);
57
58 text_t carriage_replace (const text_t &intext, int sw);
59
60 text_t get_directory_name (const text_t &fullname);
61
62 bool collection_protected (const text_t &collection);
63
64public:
65 collectoraction ();
66 virtual ~collectoraction ();
67
68 bool init (ostream &logout);
69
70 void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
71
72 text_t get_action_name () {return "collector";}
73
74 bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
75 ostream &logout);
76
77 void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
78 response_t &response,text_t &response_data,
79 ostream &logout);
80
81 void define_internal_macros (displayclass &disp, cgiargsclass &args,
82 recptprotolistclass *protos, ostream &logout);
83
84 bool do_action (cgiargsclass &args, recptprotolistclass *protos,
85 browsermapclass *browsers, displayclass &disp,
86 outconvertclass &outconvert, ostream &textout,
87 ostream &logout);
88};
89
90
91#endif
Note: See TracBrowser for help on using the repository browser.