home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / PowerPlant / CGI++ Framework / Support Classes / LCGIApplication.h < prev    next >
Encoding:
Text File  |  1995-11-17  |  1.6 KB  |  62 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    LCGIApplication.h                ©1995 Brian Todoroff  All rights reserved.
  3. // ===========================================================================
  4. //
  5. //  Commercial or for-profit use subject to licence.  Contact btodorof@hmc.edu.
  6. //
  7. //  If you use this class in your application please let me know.
  8. //
  9. //    This class may only be distributed with the complete CGI++ Framework
  10. //  package.  For further information contact the author at btodorof@hmc.edu.
  11. //
  12.  
  13. #pragma once
  14.  
  15. #include <LApplication.h>
  16. #include "LCHandleStream.h"
  17.  
  18. typedef struct {
  19.     char *    direct;
  20.     char *    search;
  21.     char *    uname;
  22.     char *    pass;
  23.     char *    fromuser;
  24.     char *    caddr;
  25.     char *    post;
  26.     char *    method;
  27.     char *    sname;
  28.     char *    sport;
  29.     char *    cginame;
  30.     char *    ctype;
  31.     char *    referer;
  32.     char *    agent;
  33.     } CGIData;
  34.     
  35.  
  36. class    LCGIApplication : public LApplication {
  37. public:
  38.                         LCGIApplication();        
  39.     virtual             ~LCGIApplication();        
  40.     
  41.     virtual void         FindCommandStatus( CommandT    inCommand,
  42.                                     Boolean &outEnabled,
  43.                                     Boolean &outUsesMark,
  44.                                     Char16 &outMark,
  45.                                     Str255 outName);
  46.     
  47.     virtual void        HandleAppleEvent( const AppleEvent &inAppleEvent,
  48.                             AppleEvent            &outAEReply,
  49.                             AEDesc                &outResult,
  50.                             long                inAENumber);
  51.     virtual Boolean     ObeyCommand(CommandT inCommand,    void *ioParam);
  52.  
  53.  
  54.     // This function should be over-ridden to respond to the CGI call
  55.     // data contains the information passed from MacHTTP
  56.     // sout should be filled with the return data
  57.     virtual    void        HandleCGICall(CGIData &,LCHandleStream &);
  58.                         
  59. protected:
  60.  
  61.     virtual void        StartUp();        // overriding startup functions
  62. };