home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Snippets / IC++ 1.0b1 / CInternetConfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-29  |  1.0 KB  |  49 lines  |  [TEXT/CWIE]

  1. /***********************************************************************\
  2.     CInternetConfig.h
  3.     
  4.     A C++ class for using Internet Config
  5.     
  6.     by Dan Crevier
  7.     
  8.     version 1.0
  9.  
  10. \***********************************************************************/
  11.  
  12. #ifndef __ICTYPES__
  13. #include "ICTypes.h"
  14. #endif
  15.  
  16. #ifndef __ICAPI__
  17. #include "ICAPI.h"
  18. #endif
  19.  
  20. class CInternetConfig
  21. {
  22.     public:
  23.         CInternetConfig(OSType applicationSig, FSSpec *prefFile = NULL);
  24.         virtual ~CInternetConfig();
  25.  
  26.         Boolean ICInstalled() { return installed; };
  27.         
  28.         ICError GetEmailAddress(Str255 emailAddress);
  29.         ICError GetRealName(Str255 realName);
  30.         ICError GetMailHost(Str255 mailHost);
  31.         
  32.         ICError DoURL(StringPtr theURL);
  33.         
  34.         ICError MapFilename(StringPtr name, ICMapEntry *entry);
  35.         ICError MapFilename(char *name, ICMapEntry *entry);
  36.         
  37.         ICError StartMapIteration(void);
  38.         Boolean NextMapEntry(ICMapEntry *entry);
  39.         ICError    FinishMapIteration(void);
  40.     
  41.     protected:
  42.         ICInstance inst;
  43.         Boolean installed;
  44.         Handle mappings;
  45.         long numMappings, currentPos;
  46. };
  47.  
  48.  
  49.