home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 February / PCO_0299.ISO / filesbbs / dos / indigo01.exe / AREAS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-21  |  1.8 KB  |  44 lines

  1. // This program is free software; you can redistribute it and/or modify it
  2. // under the terms of the GNU General Public License as published by the Free
  3. // Software Foundation; either version 2 of the License, or (at your option)
  4. // any later version.
  5.  
  6. // You should have received a copy of the GNU General Public License along
  7. // with this program; if not, write to the Free Software Foundation, Inc., 675
  8. // Mass Ave, Cambridge, MA 02139, USA.
  9.  
  10. // areas.h
  11. // Header for the Blue Wave area class.
  12. #ifndef __AREAS_H
  13. #define __AREAS_H
  14.  
  15. #include <stdio.h>
  16. #include "bluewave.h"
  17. #include "fido.h"
  18.  
  19. // Class: BlueWaveArea
  20. // Stores data and messages for one area in a Blue Wave packet.
  21. class BlueWaveArea {
  22. public:
  23.     BlueWaveArea(unsigned isNetmail, char *areaNumber, char *areaTag,
  24.                  char *areaName, unsigned defZone); // constructor
  25.     ~BlueWaveArea();                                // destructor
  26.     void addMessage(char *mFrom, char *mTo, char *mSubject, char *mDate,
  27.                     FidoAddress fromAddr, FILE *input, unsigned isPersonal);
  28.                                      // adds a message to a Blue Wave packet.
  29.     void addToFiles(FILE *infFile, FILE *mixFile, FILE *ftiFile, FILE
  30.                     *datFile);       // adds data from temporary files.
  31.     int isThisYou(const char *);     // check for echotag.
  32. protected:
  33.     INF_AREA_INFO       areainfo;    // record for .inf file.
  34.     MIX_REC             mixrec;      // record for .mix file.
  35.     unsigned            defaultZone; // default zone number.
  36. private:
  37.     char                tempFtiFile[16]; // name of temporary .fti file.
  38.     char                tempDatFile[16]; // name of temporary .dat file.
  39.     char                *myTag;          // this area's echotag.
  40.     unsigned            iAmNetmail;      // flag to check for netmail.
  41. };
  42.  
  43. #endif
  44.