home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Add-Ons / WebSTAR / PPSendPartial CGI / Source / LRequest.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-25  |  895 b   |  50 lines  |  [TEXT/CWIE]

  1. /***
  2.     File:        LRequest.h
  3.  
  4.  
  5.     Contains:    <contents>
  6.  
  7.  
  8.     Written by:    Ken Wieschhoff
  9.  
  10.  
  11.     Copyright:    ©1996 Siren Enterprises, All Rights Reserved.
  12.  
  13.  
  14.     Change History (most recent first):
  15.  
  16.  
  17.  
  18.        <1>     9/5/96  kw     Include for the single request thread.
  19.  
  20. ***/
  21.  
  22.  
  23. #include <LHandleStream.h>
  24. #include <LApplication.h>
  25. #include <LString.h>
  26. #include <LThread.h>
  27.  
  28. class LRequest : public LThread
  29. {
  30.     public:
  31.         LRequest (AEAddressDesc WebStar, long connectionID,  Handle formData);
  32.         ~LRequest();
  33.  
  34.  
  35.     protected:
  36.  
  37.         // thread execution
  38.         virtual void*    Run();
  39.  
  40.         OSErr    SendData( unsigned char *data, Size itsLength, Boolean more, Boolean sendNow);
  41.         OSErr    ReturnDataToClient( Boolean more);
  42.         void    FormatCell( long row, long column, LStr255 &cellData);
  43.         void    ParseData( long *row, long *column);
  44.  
  45.     private:
  46.         AEAddressDesc        mWebSTAR;
  47.         long                 mConnectionID;
  48.         LHandleStream        *mData;
  49.         Handle                mFormData;
  50. };