Changeset 390


Ignore:
Timestamp:
1999-07-15T18:08:55+12:00 (25 years ago)
Author:
rjmcnab
Message:

Moved the adding of the actions to librarymain so that they can
be overriden easier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/librarymain.cpp

    r268 r390  
    1212/*
    1313   $Log$
     14   Revision 1.8  1999/07/15 06:08:55  rjmcnab
     15   Moved the adding of the actions to librarymain so that they can
     16   be overriden easier.
     17
    1418   Revision 1.7  1999/06/15 01:56:12  sjboddie
    1519   Got multiple collections working
     
    4953#include "mggdbmsource.h"
    5054#include <assert.h>
     55
     56#include "action.h"
     57#include "statusaction.h"
     58#include "pageaction.h"
     59#include "pingaction.h"
     60#include "queryaction.h"
     61#include "documentaction.h"
     62#include "authenaction.h"
     63#include "usersaction.h"
     64#include "authenaction.h"
     65
    5166
    5267int main () {
     
    103118  recpt.add_protocol (&nproto);
    104119
     120  // the list of actions. Note: these actions will become invalid
     121  // at the end of this function.
     122  statusaction astatusaction;
     123  astatusaction.set_receptionist (&recpt);
     124  recpt.add_action (&astatusaction);
     125
     126  pageaction apageaction;
     127  apageaction.set_receptionist (&recpt);
     128  recpt.add_action (&apageaction);
     129
     130  pingaction apingaction;
     131  recpt.add_action (&apingaction);
     132
     133  queryaction aqueryaction;
     134  recpt.add_action (&aqueryaction);
     135
     136  documentaction adocumentaction;
     137  recpt.add_action (&adocumentaction);
     138
     139  usersaction ausersaction;
     140  recpt.add_action (&ausersaction);
     141
     142  authenaction aauthenaction;
     143  aauthenaction.set_receptionist(&recpt);
     144  recpt.add_action (&aauthenaction);
     145
    105146  cgiwrapper (recpt, "");
    106147  return 0;
Note: See TracChangeset for help on using the changeset viewer.