1 | /**********************************************************************
|
---|
2 | *
|
---|
3 | * pageaction.h --
|
---|
4 | * Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
5 | *
|
---|
6 | * PUT COPYRIGHT NOTICE HERE
|
---|
7 | *
|
---|
8 | * $Id: pageaction.h 421 1999-07-30 02:24:45Z sjboddie $
|
---|
9 | *
|
---|
10 | *********************************************************************/
|
---|
11 |
|
---|
12 |
|
---|
13 | #ifndef PAGEACTION_H
|
---|
14 | #define PAGEACTION_H
|
---|
15 |
|
---|
16 |
|
---|
17 | #include "gsdlconf.h"
|
---|
18 | #include "action.h"
|
---|
19 | #include "receptionist.h"
|
---|
20 |
|
---|
21 |
|
---|
22 | class pageaction : public action {
|
---|
23 |
|
---|
24 | protected:
|
---|
25 | receptionist *recpt;
|
---|
26 |
|
---|
27 | public:
|
---|
28 | pageaction ();
|
---|
29 | virtual ~pageaction ();
|
---|
30 |
|
---|
31 | text_t get_action_name () {return "p";}
|
---|
32 |
|
---|
33 | void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
|
---|
34 | bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
|
---|
35 | ostream &logout);
|
---|
36 |
|
---|
37 | void get_cgihead_info (cgiargsclass &args, response_t &response,
|
---|
38 | text_t &response_data, ostream &logout);
|
---|
39 |
|
---|
40 | void define_external_macros (const ColInfoResponse_t &collectinfo, displayclass &disp,
|
---|
41 | cgiargsclass &args, recptproto *collectproto,
|
---|
42 | ostream &logout);
|
---|
43 |
|
---|
44 | void define_internal_macros (const ColInfoResponse_t &collectinfo, displayclass &disp,
|
---|
45 | cgiargsclass &args, recptproto *collectproto,
|
---|
46 | ostream &logout);
|
---|
47 |
|
---|
48 | bool do_action (cgiargsclass &args, const ColInfoResponse_t &collectinfo,
|
---|
49 | recptproto *collectproto, displayclass &disp,
|
---|
50 | outconvertclass &outconvert, ostream &textout,
|
---|
51 | ostream &logout);
|
---|
52 | };
|
---|
53 |
|
---|
54 |
|
---|
55 | #endif
|
---|