Ignore:
Timestamp:
2006-07-04T15:23:58+12:00 (18 years ago)
Author:
davidb
Message:

First cut at 'The Depositor' -- Greenstone support for institutional
repositories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/collectoraction.h

    r7371 r11998  
    3030#define COLLECTORACTION_H
    3131
    32 #include "action.h"
     32#include "wizardaction.h"
    3333#include "receptionist.h"
    3434
    35 class collectoraction : public action {
     35class collectoraction : public wizardaction {
    3636 
    3737protected:
    38 
    39   bool disabled;
    40   receptionist *recpt;
    41   char *gsdlosc;
    42   char *gsdlhomec;
    43   char *pathc;
    44 
    45   text_t message;
    46   char failcode;
    4738
    4839  bool do_mkcol;
     
    5142  text_tmap failedsources;
    5243
    53   text_t get_button (const text_t &thispage, const text_t &color,
    54              const text_t &type, bool enabled);
     44  void set_fullnamemenu (displayclass &disp, cgiargsclass &args,
     45             recptprotolistclass *protos, ostream &logout);
    5546
    56   void set_fullnamemenu (displayclass &disp, cgiargsclass &args,
    57              recptprotolistclass *protos, ostream &logout);
    5847
    5948  void set_inputsourceboxes (displayclass &disp, cgiargsclass &args,
     
    6554  void set_cfgfile (displayclass &disp, cgiargsclass &args, ostream &logout);
    6655
    67   void set_statusline (displayclass &disp, cgiargsclass &args, ostream &logout);
    6856
    6957  void update_cfgfile_clone (cgiargsclass &args, ostream &logout);
     
    7361  void update_cfgfile_complete (cgiargsclass &args, ostream &logout);
    7462
    75   text_t carriage_replace (const text_t &intext, int sw);
    76 
    77   text_t get_directory_name (const text_t &fullname);
    78 
    79   bool collection_protected (const text_t &collection);
    80 
    81   bool assign_tmpname (cgiargsclass &args, ostream &logout);
    8263
    8364  void gsdl_mkcol (cgiargsclass &args, ostream &logout);
    8465
    85   void gsdl_build (cgiargsclass &args, ostream &logout);
    8666
    87   void gsdl_cancel_build (cgiargsclass &args, ostream &logout);
    88 
    89   text_t get_collectdir (cgiargsclass &args);
    90 
    91   bool uses_weird_plugin (const text_t &collection);
    92 
    93   void create_colserver (const text_t &collection, ostream &logout);
    94 
    95   void remove_colservr (const text_t &collection, ostream &logout);
    96 
    97   bool create_event_header_file (const text_t &filename, cgiargsclass &args,
    98                  ostream &logout);
    99 
    100   text_t get_event_header (cgiargsclass &args);
    10167
    10268  bool check_sources (cgiargsclass &args, ostream &logout);
    10369
    104   text_t format_url (const text_t &url);
     70  text_t get_button (cgiargsclass &args, const text_t &thispage,
     71             const text_t &color,
     72             const text_t &type, bool enabled);
    10573
    106   text_t remove_trailing_slashes (text_t str);
    10774
    10875public:
     
    11077  virtual ~collectoraction ();
    11178
    112   void configure (const text_t &key, const text_tarray &cfgline);
    113 
    114   bool init (ostream &logout);
    115 
    116   void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
    117 
    11879  text_t get_action_name () {return "collector";}
    11980
    12081  bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
    12182              recptprotolistclass *protos, ostream &logout);
    122 
    123   void get_cgihead_info (cgiargsclass &args, recptprotolistclass *protos,
    124              response_t &response,text_t &response_data,
    125              ostream &logout);
    12683
    12784  void define_internal_macros (displayclass &disp, cgiargsclass &args,
     
    13289          outconvertclass &outconvert, ostream &textout,
    13390          ostream &logout);
     91
    13492};
    13593
Note: See TracChangeset for help on using the changeset viewer.