source: gsdl/trunk/runtime-src/src/recpt/wizardaction.h@ 19046

Last change on this file since 19046 was 16910, checked in by davidb, 16 years ago

Setting up of enviroment variables in its init() method now moved to gsdltools as useful for other parts as well. The init() method now calls gsdltools::set_gsdk_env_vars(..)

  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1/**********************************************************************
2 *
3 * wizardaction.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#include "gsdl_modules_cfg.h"
27
28#ifndef WIZARDACTION_H
29#define WIZARDACTION_H
30
31#include "action.h"
32#include "receptionist.h"
33
34class wizardaction : public action {
35
36
37public:
38 wizardaction ();
39 virtual ~wizardaction ();
40
41 void configure (const text_t &key, const text_tarray &cfgline);
42
43 bool init (ostream &logout);
44
45 void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
46
47 text_t get_action_name () {return "wizard";}
48
49 void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
50 response_t &response,text_t &response_data,
51 ostream &logout);
52
53 bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
54 recptprotolistclass * protos, ostream &logout);
55
56
57protected:
58 bool disabled;
59 receptionist *recpt;
60
61 text_t macro_prefix;
62
63 text_t message;
64 char failcode;
65
66 virtual text_t get_button (cgiargsclass &args, const text_t &thispage,
67 const text_t &color,
68 const text_t &type, bool enabled)=0;
69
70
71 text_t carriage_replace (const text_t &intext, int sw);
72
73 text_t get_directory_name (const text_t &fullname);
74
75 bool collection_protected (const text_t &collection);
76
77 bool assign_tmpname (cgiargsclass &args, ostream &logout);
78
79
80 void set_statusline (displayclass &disp, cgiargsclass &args, ostream &logout);
81 void gsdl_build (cgiargsclass &args, ostream &logout);
82
83 void gsdl_cancel_build (cgiargsclass &args, ostream &logout);
84
85 text_t get_collectdir (cgiargsclass &args);
86
87 void create_colserver (const text_t &collection, ostream &logout);
88
89 void remove_colservr (const text_t &collection, ostream &logout);
90
91 bool create_event_header_file (const text_t &filename, cgiargsclass &args,
92 ostream &logout);
93
94 text_t get_event_header (cgiargsclass &args);
95
96 text_t format_url (const text_t &url);
97
98 text_t remove_trailing_slashes (text_t str);
99
100 void set_fullnamemenu (displayclass &disp, cgiargsclass &args,
101 recptprotolistclass *protos, ostream &logout);
102
103 bool uses_weird_plugin (const text_t &collection);
104
105};
106
107#endif //!WIZARDACTION_H
108
Note: See TracBrowser for help on using the repository browser.